Remove cache in asp.net page
So far I've tried the page directive: @ OutputCache Duration="1" Location="None" The Meta tags: <meta http-equiv="Expires" CONTENT="0"> <meta http-equiv="Cache-Control" CONTENT="no-cache"> <meta http-equiv="Pragma" CONTENT="no-cache"> And the code: Response.ExpiresAbsolute = DateTime.Now Response.Expires = -1441 Response.CacheControl = "no-cache" Response.AddHeader("Pragma", "no-cache") Response.AddHeader("Pragma", "no-store") Response.AddHeader("cache-control", "no-cache") Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetNoServerCaching()
0 Response to "Remove cache in asp.net page"
Post a Comment