我可以禁用 FF3 后退按钮缓存吗? [英] Can I disable FF3 back button cache?

查看:17
本文介绍了我可以禁用 FF3 后退按钮缓存吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现当按下后退按钮时,即使我发送以下标题,它也会从浏览器缓存中获取上一页:

I found out that when pressing back button it gets previous page from browser cache even if I send following headers:

Test1.aspx

Server              ASP.NET Development Server/9.0.0.0
Date         Wed, 24 Mar 2010 17:49:40 GMT
X-AspNet-Version 2.0.50727
Location         Test2.aspx
Cache-Control no-cache, no-store
Pragma         no-cache
Expires         -1
Content-Type text/html; charset=utf-8
Content-Length 189
Connection         Close

推荐答案

expires 应该是日期+时间戳,缓存控制的must-revalidata"和max-age"也可能有帮助?

expires should be a date+timestamp and cache-control"s "must-revalidata" & "max-age" might help as well?

Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0

这篇关于我可以禁用 FF3 后退按钮缓存吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆