Make thumb.php give http redirects if given a file redirect
authorBrian Wolff <bawolff+wn@gmail.com>
Tue, 20 Aug 2013 20:29:23 +0000 (13:29 -0700)
committerBrian Wolff <bawolff+wn@gmail.com>
Tue, 27 Aug 2013 15:22:05 +0000 (09:22 -0600)
commit82a8e0793579159bf65e1228ef3afd9e65f016c1
tree49eeb0c6dd917da477d40f18a0859f659ff2ffc3
parent6996988cd2cedc0081ff4ee71c7882b05646232e
Make thumb.php give http redirects if given a file redirect

See bug 22390 for some of the background. Basically there's two
reasons why we want this:
* Hotlinkers to commons. We don't want to break their links when
we move a file (Wikimedia blog is a prominent hotlinker)
* Cached entires. On wikis using commons files, a file move doesn't
trigger HTMLCacheUpdate jobs for the downstream wiki (it only
triggers it on commons). This means that these pages will still
use the old version of the html (with img tags that have the old
url) until the next edit or purge action. But these urls won't
work as soon as the file is moved.

I'm pretty confident that redirects will work at this point
in the thumb stack, as the redirects for long file names work
fine (provided no thumb exists in swift with the wrong name).

Change-Id: I40350121cf902f66fcbd3cf788335a988fa7ee33
RELEASE-NOTES-1.22
thumb.php