+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Libraries; Expire, max-age, cache

Libraries; Expire, max-age, cache

3 posts, 0 answered
  1. Per Osbeck
    Per Osbeck avatar
    7 posts
    Registered:
    12 May 2010
    22 Mar 2011
    Link to this post
    Hi,

    is it possible to set a http header max-age, expires for images coming from the Library?

    /Per
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Mar 2011
    Link to this post
    Hi Per,

    It could be done with a custom handler that inherits from ContentHttpHandler where you can override SetResponseSettings and set the header from the context.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
  3. Per Osbeck
    Per Osbeck avatar
    7 posts
    Registered:
    12 May 2010
    22 Mar 2011
    Link to this post
    Thanks Ivan.

    It's not possible then if using Telerik.Libraries.LibraryHttpModule for real extensions?

    (Also found SetCacheability on the ContentHttpHandler.)

    Edit: Nevermind, it worked by overriding SetCachebility also when using LibraryHttpModule

    best regards
    Per
Register for webinar
3 posts, 0 answered