1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

As Designed Image Proxy doesn't respect cache headers

Discussion in 'Resolved Bug Reports' started by md_5, Jun 9, 2014.

  1. md_5

    md_5 Well-Known Member

    Images shouldn't be cached for longer than the Cache-Control header specifies.
     
  2. Mike

    Mike XenForo Developer Staff Member

    While I appreciate the sentiment, this is really the designed behavior for the image proxy. It's not designed to be a simple client-side cache and disabling caching (for example) could very easily lead to a degraded experience (slow servers) and potentially a significant bandwidth increase.
     
    digitalpoint and Adam Howard like this.
  3. md_5

    md_5 Well-Known Member

    The problem I have is that many users (especially in their signatures) have dynamic images that change on a frequent basis, yet the image proxy is needed for full https integration.
    Maybe the cache time could be set:
    PHP:
    cacheTime = (cacheHeader minCache) ? minCache : ((cacheHeader maxCache)? cacheHeader maxCache);
    That way everything gets cache for at least some period, and those which need to be refreshed frequently can be.
     
    McLive likes this.
  4. McLive

    McLive Member

    Any news about this?
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    News in what sense?

    As the prefix denotes, this is as designed.
     
    Amaury likes this.

Share This Page