Click here to Skip to main content
15,908,834 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
How do I prevent my ASP pages from caching?
Posted

Please see here: http://www.devx.com/vb2themax/Tip/18635[^].

Cheers!

—MRB
 
Share this answer
 
Comments
arathi_suresh 15-Jul-11 3:35am    
My +5
Manfred Rudolf Bihy 15-Jul-11 3:36am    
Thank you!
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetNoStore()
 
Share this answer
 
v2
you could add this meta tag <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> more information can be found here[^]
 
Share this answer
 
Try to use this in your Page_load

Response.Cache.SetCacheability(HttpCacheability.NoCache);

or

See:
http://www.codeproject.com/Tips/135121/Browser-back-button-issue-after-logout

Hope this Helps You.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900