Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Is there any way to disable caching for all pages in my web application? Is there any setting that can be done in web.config?

I tried Context.Response.Cache.SetCacheability(HttpCacheability.NoCache);

But I need to add this in each page.

Any help would be appreciated.

Thanks in advance.

Regards,
Aarti
Posted
Comments
Rounak Hasan 18-May-11 9:46am    
Pls try googling first before posting question here...

 
Share this answer
 
Comments
fjdiewornncalwe 18-May-11 9:06am    
Sorry Manfred, but senguptallmlan beat you to this one, so I have to give my 5 to him this time. Cheers. [Edit]Kidding, of course. Have a 5.[\Edit]
Manfred Rudolf Bihy 18-May-11 10:36am    
:)
 
Share this answer
 
Comments
fjdiewornncalwe 18-May-11 9:06am    
+5. Absolutely.
Manfred Rudolf Bihy 18-May-11 10:37am    
+5 Same link same vote!

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