HttpContext.Current.Response.Cache.SetAllowResponseInBrowserHistory(false); HttpContext.Current.Response.AddHeader("Cache-Control", "no-cache, no-store"); HttpContext.Current.Response.AddHeader("Pragma", "no-cache"); HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache); HttpContext.Current.Response.Cache.SetNoStore(); Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)); Response.Cache.SetValidUntilExpires(true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)