Developer forum

Forum » CMS - Standard features » RE: How do i Cache optimze a DW page?

RE: How do i Cache optimze a DW page?

Hans Ravnsfjall
Reply

Hi

I have a costumer, that want´s to performance optimize their Dynamicweb page. The costumers webpage is here, www.banknordik.dk

If i look it up, it says shold fix leverage browser caching https://developers.google.com/speed/pagespeed/insights/?url=www.banknordik.dk&tab=desktop

 

but how can I do this? The backend browser caching controller does not seem to affect this

 

hope someone can help me regarding this?


Replies

 
Morten Bengtson
Reply

The caching settings in DW are mostly related to dynamic content / pages.

You can control browser caching of static content by adding settings manually to web.config or use IIS manager:

http://www.iis.net/configreference/system.webserver/staticcontent/clientcache

The settings are stored in the web.config file in the Application root folder of the Dynamicweb installation.

Here is an example (look for staticContent), which shows some "best practices" for ensuring correct caching of static resources (and other useful stuff):

https://github.com/h5bp/server-configs-iis/blob/master/dotnet%204/webforms/web.config

 
Martin Christensen
Reply

Hey,

has anything changed in this regard.

In particular, I would like to change the cache experiation for css and js files to meet the requirements from Google Pagespeed Insights.

I've added a key to my GlobalSettings that controls the cache period for images produced by the image handler. It would be amazing to have the same option for other types of content. We don't have access to web.config on many of our clients' solutions.

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Is there news in this regrad? Would be nice to be able to set this up in settings/management center

 
Nicolai Pedersen
Reply

Hi Hans

There will be a significant update on this area in 9.3 making caching much much better (and always on) for pages, paragraphs and items on a page. So until then - you cannot do much.

BR Nicolai

 
Martin Christensen
Reply

Hi Nicolai,

that sounds really great! Looking forward to 9.3.

I hope caching of js and css resources will be considered as well, since that matters a lot in regards to Google Pagespeed.

 

BR Martin

 

You must be logged in to post in the forum