开发者

How can I flush cache in the Firefox?

开发者 https://www.devze.com 2023-03-01 21:01 出处:网络
Here is my code line in the default.aspx Response.C开发者_开发知识库ache.SetExpires(DateTime.UtcNow.AddMinutes(-1));

Here is my code line in the default.aspx

Response.C开发者_开发知识库ache.SetExpires(DateTime.UtcNow.AddMinutes(-1));

Response.Cache.SetCacheability(HttpCacheability.NoCache);

Response.Cache.SetNoStore();

But,Firefox does not work.How can I flush cache in the Firefox?BTW, I am using silverlight.

Thanks in advance.


FireFox is a thought one with cache. Witch version are you dealing with?

You could try this.

        Response.Cache.SetCacheability(HttpCacheability.NoCache);
        Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
        Response.Cache.SetNoStore();
        Response.Buffer = true;
        Response.CacheControl = "no-cache";
        Response.AddHeader("Pragma", "no-cache");
        Response.AppendHeader("Cache-Control", "no-store");
        Response.Expires = -1441;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号