Developer forum

Forum » CMS - Standard features » Optimizing standard template cache of assets in Dynamicweb - trying to please Lighthouse

Optimizing standard template cache of assets in Dynamicweb - trying to please Lighthouse

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

According to lighthouse, images, scripts and styles are typically cached for 7 days, and in order to get a higher score - we have to increase cache of these assets significally.

https://web.dev/uses-long-cache-ttl/?utm_source=lighthouse&utm_medium=unknown

Is it possible to please lighthouse on this matter in Dynamicweb?

 


Replies

 
Nicolai Pedersen
Reply

Jep, 9.12 does that.

You can change it on other solutions by changing the web.config.

<staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="120.00:00:00" cacheControlCustom="public" />
      <remove fileExtension=".woff2" />
      <mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
      <mimeMap fileExtension=".webp" mimeType="image/webp" />
    </staticContent>
 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Brilliant 👍🏻 Just what I need.

Any update on when the new http compression will be available?

/Hans

 
Nicolai Pedersen
Reply

Compression should be today. We are currently chaning our build and release setup and we are waiting for the last bits and pieces of that process. Just saw it working 5 mins ago though!

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Wonderful, thank you 👍🏻

will give it a go as soon as it is ready

/Hans

 

You must be logged in to post in the forum