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

WebForm页面加载后,多次使用清缓存代码,IE无法加载页面

在Page_Load里使用了如下代码122次后,页面就无法加载了。而,121次却可以,请高人指点。

HttpContext.Current.Response.Buffer = true;
        HttpContext.Current.Response.Expires = 0;
        HttpContext.Current.Response.ExpiresAbsolute = DateTime.Now.AddSeconds(-1);   //DateTime.Now.AddDays(-1); 
        HttpContext.Current.Response.AddHeader("pragma", "no-cache");
        HttpContext.Current.Response.AddHeader("cache-control ", "private");
        HttpContext.Current.Response.CacheControl = "no-cache";
        HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
        HttpContext.Current.Response.Cache.SetAllowResponseInBrowserHistory(true); 
--------------------编程问答-------------------- 删掉这些多余的代码,会有什么问题? --------------------编程问答--------------------
引用 1 楼 sp1234 的回复:
删掉这些多余的代码,会有什么问题?


我想了解一下这个为什么会在ie8下出现这种情况。原理是什么?不知道答案查找方向,请高人指点。 --------------------编程问答-------------------- 没人回答自己顶,求大神围观!
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,