IE6和缓存 [英] IE6 and Caching

查看:151
本文介绍了IE6和缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎IE6忽略了通过http标头发送的任何形式的缓存失效,我尝试将Pragma设置为No Cache并将Cache Expiration设置为当前时间,但在IE6中,回击将始终拉出缓存版本我正在处理的页面。

It seems that IE6 ignores any form of cache invalidation sent via http headers, I've tried setting Pragma to No Cache and setting Cache Expiration to the current time, yet in IE6, hitting back will always pull up a cached version of a page I am working on.

IE6是否也会监听特定的HTTP标头?

Is there a specific HTTP Header that IE6 does listen too?

推荐答案

Cache-Control:private,max-age = 0 应该修复它。从经典ASP开始,这是通过 Response.Expires = -1 完成的。

Cache-Control: private, max-age=0 should fix it. From classic ASP this is done with Response.Expires=-1.

请谨慎测试,因为您的服务器正在为关闭缓存的页面提供服务并不意味着当浏览器有一个旧的缓存页面时,它会被告知可以缓存。清除缓存或使用F5强制重新加载该页面。

Keep in mind when testing that just because your server is serving pages with caching turned off doesn't mean that the browser will obey that when it has an old cached page that it was told was okay to cache. Clear the cache or use F5 to force that page to be reloaded.

此外,对于服务器提供缓存内容的情况,您可以使用 Ctrl + F5 表示服务器不从缓存中提供服务。

Also, for those cases where the server is serving cached content it you can use Ctrl+F5 to signal the server not to serve it from cache.

这篇关于IE6和缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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