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();
精彩评论