Disable cache for user control
Hi,
I am working with Sitefinity 4.1.1395.
I want to disable the caching for a user control only. This is the code Im using, but its ineffective.
<%@ OutputCache Duration="1" VaryByParam="none" %>
How can I disable the cache for the control only? I don't want to disable the cache on the entire page.
Thanks
Hi Nidhi,
According to MSDN there are two ways
Set options declaratively using the @ OutputCache directive in the .aspx file.
Use the methods and properties of the HttpCachePolicy class, which is exposed by the Response.Cache object in the page's code.