Client caching - theme assets

Posted by Community Admin on 03-Aug-2018 00:18

Client caching - theme assets

All Replies

Posted by Community Admin on 22-Nov-2011 00:00

Hi all,

Does anyone know how to change the client caching on theme assets; images and css files in my app_data/sitefinity/websitetemplates/mysite/App_themes/mytheme/ folder?

Currently it is set to 14 days.

Changing the caching settings in Settings -> System -> Output Cache Settings -> Client Cache Profiles has no effect. This changes the caching of other image/css files, such as in my images fiolder. but not in a theme.

Neither does setting a clientcache item under system.webserver/staticcontent in my web.config.

Cheers, Stephen

Posted by Community Admin on 24-Nov-2011 00:00

Hi Stephen,

Sitefinity caching is only valid for Sitefinity content (pages, images in images module, news, blogs ...).
To set different caching of files on local folders

<configuration>
  <location path="images">
    <system.webServer>
      <staticContent>
        <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="00:00:15" />
      </staticContent>
    </system.webServer>
  </location>
</configuration>


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

This thread is closed