Quantcast
Viewing all articles
Browse latest Browse all 2540

New Post: Strange Page Caching

You are seeing ASP.NET Page Caching at work.

You can disable caching of a specific page in one of the following ways:

Call this from code:
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
Or have this C1 Function call in a page / template / function output:
<f:function name="Composite.Web.Response.SetServerPageCacheDuration" xmlns:f="http://www.composite.net/ns/function/1.0">
    <f:param name="MaxSeconds" value="0" />
</f:function>
You can also disable page caching for all pages - edit web.config and change this part (change 60 to 0):
<caching>
   <outputCacheSettings>
      <outputCacheProfiles>
         <add name="C1Page" duration="60" varyByCustom="C1Page" varyByParam="*" />
      </outputCacheProfiles>
   </outputCacheSettings>
</caching>

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>