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
    andy_rose
    0

    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.

  • Dennis Aaen 4394 posts 17768 karma points admin hq c-trib
    Oct 08, 2014 @ 17:45
    Dennis Aaen
    0

    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.

    <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

    Hope this helps,

    /Dennis

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

    Hi, Andy,

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

    cheers,
    doug.

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

    Cheers Doug,

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

    Andy

Please Sign in or register to post replies

Write your reply to:

Draft