Categories
October Surprise 2016

Disable browser cache for entire ASP.NET website

Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); Response.Cache.SetNoStore(); And also a meta tag method (it won’t work for me, since some MVC actions send partial HTML/JSON through Ajax, without a head, meta tag).