Developer forum

Forum » CMS - Standard features » Getimage.ashx - caching

Getimage.ashx - caching

Rene Poulsen
Reply

Hi,

Is it possible to change the caching period for images returned by the getimage.ashx (it's 24 hours)? I've become a pagespeed junkie ;-) So I would like to change this to 7 days - this is the minimum period to set, if you don't want pagespeed insights complaining about cahcing.


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Rene

Nice hobby :-).

From 8.6.1 set the /Globalsettings/Settings/ImageHandler/CacheHours to any double to control the SetMaxAge on GetImage.ashx (TFS#16910)

BR Nicolai

 
Rene Poulsen
Reply

Great! :-)

 
Rene Poulsen
Reply

Hi Nicolai,

Just updated a testsite we have to 8.6.1.4 - there's no "ImageHandler" anywhere in the GlobalSettings.

Do I need to do anything else to make this available or isn't it implemented yet?

 
Nicolai Høeg Pedersen
Reply

Hi Rene

Simply add the key your self.

BR Nicolai

 
Rene Poulsen
Reply

Ok, I just thought you would make it available in there. I'll add it myself and see if it works.

Have a nice weekend :-)

 

You must be logged in to post in the forum