+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Enabling Client Side Cache Control

Enabling Client Side Cache Control

3 posts, 0 answered
  1. Jeff
    Jeff avatar
    124 posts
    Registered:
    05 Aug 2007
    26 Jul 2011
    Link to this post
    Hi,

    I'm trying to get Sitefinity to return return the LastModifed header and set cache control to private. By default Sitefinity tells the client not to cache the page.

    I found the following entries in web.config but I'm not sure how to use them:

    <browserCacheSettings lastModifiedDateEnabled="true" contentExpirationEnabled="false">
      <expirationSettings option="ExpireImmediately" value="0">
      </expirationSettings>
    </browserCacheSettings>

    I have code to do this on static aspx pages. Sitefinity seems to override this code when I use it on a CMS page.

    Thanks for you help.

    Jeff
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    06 Dec 2016
    28 Jul 2011
    Link to this post
    Hi Jeff,

    Here are the types of cache control headers. To set it to private find the <cms> section in your web.config and add the value for "pagecacheprovider" to "PRIVATE". For more information refer to the manual page 186.

    Best wishes,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Jeff
    Jeff avatar
    124 posts
    Registered:
    05 Aug 2007
    28 Jul 2011
    Link to this post
    Hi Stanislav. Thanks for your reply.

    When I add pageCacheProvider as an attribute of the cms element, I get a configuration error:

    Unrecognized attribute 'pageCacheProvider'. Note that attribute names are case-sensitive.

    Here's what the cms element looks like in my web.config. I'm running 3.7 SP4.

    <cms defaultProvider="Sitefinity" pageExtension=".htm" disabled="false" pageEditorUIMode="Overlay" pageCacheProvider="Private">
Register for webinar
3 posts, 0 answered