开发者

Empty the cache for a whole site via ASP.NET / JavaScript?

开发者 https://www.devze.com 2023-04-04 13:39 出处:网络
Is it possible to force the browser to clear the cache for a whole site/domain? I\'ve an ASP.NET App开发者_如何学Clication and after some changes in the user-settings, all pages must be reloaded from

Is it possible to force the browser to clear the cache for a whole site/domain? I've an ASP.NET App开发者_如何学Clication and after some changes in the user-settings, all pages must be reloaded from the server next time and not from the browser's cache. Thus, can I tell the browser to clear the cache for my site? In all other cases, the browser's cache is very useful reducing the http traffic.


Check-it Out:

Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now);
Response.Cache.SetNoServerCaching();
Response.Cache.SetNoStore();
0

精彩评论

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