Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
The CachingTimeSpan parameter element sets the number of seconds the website visitor’s browser shouldcache the image locally before requesting a new version from the server. Unless specified, there is no client-sidecaching, which is equivalent to 0.
Server-side caching with ETags and403-Not Modified responses is always enabled, even with ImageGen Basic.
You can find the ImageGen 2.5 Reference Manual here
Hope this helps,
The CacheTimeSpan can handle very large numbers. You could certainly set it to 31536000 seconds, which is a year.
I've set it to a month, good to hear that it handles up to a year.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted