Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • andy_rose 91 posts 117 karma points
    Oct 08, 2014 @ 16:04

    Maximum CacheTimeSpan value?


    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.

  • Dennis Aaen 4440 posts 17904 karma points admin hq c-trib
    Oct 08, 2014 @ 17:45
    Dennis Aaen

    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:


    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,


  • Douglas Robar 3570 posts 4670 karma points MVP 6x admin c-trib
    Oct 08, 2014 @ 21:47
    Douglas Robar

    Hi, Andy,

    The CacheTimeSpan can handle very large numbers. You could certainly set it to 31536000 seconds, which is a year.


  • andy_rose 91 posts 117 karma points
    Oct 13, 2014 @ 11:14

    Cheers Doug,

    I've set it to a month, good to hear that it handles up to a year.


Please Sign in or register to post replies

Write your reply to: