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

XF 1.4 Image Proxy Failing in Random Instances

Warchamp7

Active member
#1
I recently switched a site over to SSL and enabled the link/image proxies, but am having an issue where the image proxy is randomly failing.

Example


The second (working) image and the third (broken) image are both gif links from giphy.com, but the proxy link failed to work for the third image.

The data-urls for both links are both correct and work fine. Any ideas why the Image Proxy failed in this instance? (There are other cases across the site as well)
 

Mike

XenForo developer
Staff member
#5
It failed here as well, so I imagine that's the problem? Is it a matter of it taking too long for the proxy to fetch? Is there a setting I can tweak to solve this?
There are size limits and time limits. The size limit you can tweak via "Image Cache Max Size". The download time limit you can't change and is to prevent certain attacks.
 
#6
Is there a way to disable image caching? We import all images on our site. We are trying to fix a number of import errors and it appears that our edits are being corrupted by the cache process. (Really just a guess at this point)

I have been using direct database edits to replace the bad references for correct ones that initially look like URL's but will be replaced with attachments by our use of Convert Image All. Something is causing these fixes to disappear a few hours after they have been done.
 

Mike

XenForo developer
Staff member
#7
The image proxy is a view-time only thing, so anything that works on the URLs in a post directly won't be affected. But no, there's no way to disable caching with the proxy short of disabling it.