Code
Response.Cache.SetNoStore();
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.AddHeader("Pragma", "no-cache");
//Tell proxy servers
not to cache the page.
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
Code
Response.Cache.SetNoStore();
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.AddHeader("Pragma", "no-cache");
//Tell proxy servers
not to cache the page.
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
Join the conversation! Your thoughts help the community grow.