Client caching - theme assets
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
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
>