• 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

Mike

XenForo developer
Staff member
#2
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.
 

md_5

Well-known member
#3
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.
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.