How can I flush cache in the Firefox?
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;
精彩评论