Developer forum

Forum » CMS - Standard features » increase cache 7 days

increase cache 7 days

Cristina Santos
Reply

Pagespeed insights is complaining about caching (Serve static assets with an efficient cache policy).

All the elemts Admin/Public/GetImage.ashx?Width=640&Height=5... shows a 7 days cache. 

 I would like to change the 7 days to 30 days or even more...so that the notice stops appearing in PageSpeed.

So far, i have set a value inside Global Settings: 
 <ImageHandler>
 <CacheHours>720</CacheHours>

Also, i have change this line in web.config (one year cache):

<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public" /> 

But still the elements Admin/Public/GetImage.ashx?Width=640&Height=5..... still shows a 7 days cache. 

Any ideas? 

Thank  you!


Replies

 
Nicolai Pedersen
Reply

Hi Cristina

You can set the expiration in backend of Dynamicweb:

You can set it to 2880 hours which is 120 days - that is what we do for Swift and Lighthouse 100 scores.

 
Cristina Santos
Reply

Great! Thats perfect! 

Thank you

 

You must be logged in to post in the forum