Disabling output Caching in ASP.Net 2.0
Output caching is one of the caching mechanism provide by ASP.Net framework. This caching technique caches the output of a page or a user control when it is dictated using @outputCache directive in ASPX page for a specific duration.
At times, we may need to disable the output caching for the whole ASP.Net application for some debugging purposes, etc. This little article will help you to do that.
To Disable output caching, we can set the following attribute to false which disables the output caching that is set on the pages in the asp.net site.
<outputCache enableOutputCache="false" />
The below config section include all the possible setting for caching application wide,
<outputCache enableOutputCache="true/false" enableFragmentCache="true/false" sendCacheControlHeader="true/false" omitVaryStar="true/false"></outputCache>
Read MSDN for more details, http://msdn2.microsoft.com/en-us/library/ms228124(vs.80).aspx
|