Pretty much what the topic title says, what is the maximum value for the CacheTimeSpan property of the class element that I can set? We have some image files that are uniquely named and never change that are served via a CDN that calls them through ImageGen and I don't want them to request from our servers unnecessarily.
Don´t know if you have seen the ImageGen 2.5 Reference Manual. In the manual there is an chapter about the CacheTimeSpan.
It says:
CachingTimeSpan
The CachingTimeSpan parameter element sets the number of seconds the website visitor’s browser should cache the image locally before requesting a new version from the server. Unless specified, there is no client-side caching, which is equivalent to 0.
<CachingTimeSpan>0</CachingTimeSpan>
Server-side caching with ETags and 403-Not Modified responses is always enabled, even with ImageGen Basic.
You can find the ImageGen 2.5 Reference Manual here
Maximum CacheTimeSpan value?
Hi,
Pretty much what the topic title says, what is the maximum value for the CacheTimeSpan property of the class element that I can set? We have some image files that are uniquely named and never change that are served via a CDN that calls them through ImageGen and I don't want them to request from our servers unnecessarily.
Hi Andy,
Don´t know if you have seen the ImageGen 2.5 Reference Manual. In the manual there is an chapter about the CacheTimeSpan.
It says:
CachingTimeSpan
The CachingTimeSpan parameter element sets the number of seconds the website visitor’s browser should
cache the image locally before requesting a new version from the server. Unless specified, there is no client-side
caching, which is equivalent to 0.
Server-side caching with ETags and
403-Not Modified responses is always enabled, even with ImageGen Basic.
You can find the ImageGen 2.5 Reference Manual here
Hope this helps,
/Dennis
Hi, Andy,
The CacheTimeSpan can handle very large numbers. You could certainly set it to 31536000 seconds, which is a year.
cheers,
doug.
Cheers Doug,
I've set it to a month, good to hear that it handles up to a year.
Andy
is working on a reply...