Developer forum

Forum » Templates » Set Browser Cache images

Set Browser Cache images

Michael Houmark
Reply

Is it possible to specify the cache expiration date of af folder of images?

(I do not have access to the solutions IIS)

If this has been addressed already im sorry, but the search didn't return anything.


Replies

 
Rune Skovbo
Reply

Any update on this?

Is it possible to set expiration date on specific images as well as folders?

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Rune

That is only possible using IIS. GetImage.ashx sets the ETAG and returns a 304 if the file has not been changed. Also you can set the expiration for images served by GetImage.ashx by setting the /Globalsettings/Settings/ImageHandler/CacheHours setting to your desired maxage for images served by the handler.

BR Nicolai

Votes for this answer: 1
 
Rune Skovbo
Reply

Perfect, thanks a lot!

/Rune

 

You must be logged in to post in the forum