Wednesday, August 4, 2010

Remove Cache.

private void clearCache()
{
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "no-cache");
Response.AddHeader("cache-control", "no-store, no-cache, must-revalidate");
Response.Expires = -1;
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
}

No comments:

Post a Comment