Page MenuHomePhabricator

Image redirection IE cache problem
Closed, ResolvedPublic

Description

Author: tom

Description:
All images are currently loaded from upload.wikipedia.org, for extra security - which is a good thing.
However, what's not good is the way they are loaded - via a HTTP 302 Moved Temporarily redirect.

Not only does this mean every image needs two HTTP requests to load, it also causes IE to always re-check
the redirect whenever it displays an image. Although the actual image data is cached, it *always* loads
the original image URL to see if the redirect still goes to the same place.

Thus if a user goes to Wikipedia's Main Page, goes to another article and clicks back, every image will
be re-checked, delaying loading by quite a while and creating many needless HTTP requests.

I've tried sending various HTTP headers to make IE cache the redirect location, but I can't. I think the
only solution is to directly point the image SRC to upload.wikipedia.org.


Version: unspecified
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz628

Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:59 PM
bzimport set Reference to bz628.
bzimport added a subscriber: Unknown Object (MLST).

tom wrote:

From bug 638: "As far as I can see setting the full URL path in $wgUploadPath should be sufficient."

Can someone please change this? It will reduce load for images, and fix the cache problems with IE.