当前位置:编程学习 > C#/ASP.NET >>

为什么设置了Response.Cache.SetCacheability(HttpCacheability.NoCache)后,ie6不起作用啊?

如题! --------------------编程问答-------------------- --------------------编程问答-------------------- mark??? --------------------编程问答-------------------- 看看这个问题和你的问题一样吗?
http://forums.asp.net/t/1334542.aspx

如果 一样,那就是IE的bug.
这里说了原因和walkaround:
http://webbugtrack.blogspot.com/2007/09/bug-223-magical-http-get-requests-in.html --------------------编程问答-------------------- Response.Buffer = true; 
Response.ExpiresAbsolute = DateTime.Now.Date.AddDays(-1); 
Response.Expires = 0; 
Response.CacheControl = "no-cache"; 
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">              
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">  
<META HTTP-EQUIV="Expires" CONTENT="-1">        --------------------编程问答-------------------- 点击返回的时候让网页过期,清除缓存IE6应该可以
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,