首页 新闻 会员 周边

怎么样清掉 火狐浏览器的缓存?防止用户注销后,后退键

0
悬赏园豆:140 [已关闭问题] 关闭于 2009-11-17 16:39

  Response.CacheControl = "no-cache";
        Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
        Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
        Response.Cache.SetNoStore();
        Response.Expires = 0;
        Response.Buffer = false;
        Response.ExpiresAbsolute = DateTime.Now.Subtract(new TimeSpan(10, 10, 10));
        Response.Clear();

 

 <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Pragma" content="no-cache">

 

这是我的服务器端 和浏览器端 代码,IE是可以了 但是 火狐怎么都不成功

DotDot的主页 DotDot | 初学一级 | 园豆:109
提问于:2009-11-04 18:16
< >
分享
所有回答(3)
0

在不需要缓存的页面中添加如下代码

Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);

Response.Cache.SetNoStore();

DaCHun | 园豆:255 (菜鸟二级) | 2009-11-04 18:32
0

首先要做如下声明:

<%@ OutputCache Location="None" VaryByParam="None" %>

后台程序:

Response.Cache.SetCacheability(HttpCacheability.NoCache);

风影极光 | 园豆:1573 (小虾三级) | 2009-11-04 20:40
0

看看这个有没有帮助

http://hi.baidu.com/cdefg198/blog/item/df7f0e18a038bd73dab4bd3e.html

http://www.iol.ie/~locka/mozilla/control.htm

http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_24501808.html

邀月 | 园豆:25475 (高人七级) | 2009-11-05 08:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册