Take redirect modifications into account for If-Modified-Since
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 11 Jul 2014 14:05:36 +0000 (10:05 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 11 Jul 2014 20:40:57 +0000 (16:40 -0400)
commit6765092258242e766ecfa281508aa10d10c15ad5
tree89b27c4c97189ab9b6d70e6c22c3d9a4e4dd47c3
parent5842d0aa075c02c300805f97a98b2f6389145f46
Take redirect modifications into account for If-Modified-Since

When the pageview is following a redirect, MediaWiki is only considering
the page_touched timestamp for the target page. This causes issues with
handling If-Modified-Since if the redirect is retargeted after the
target page was last touched.

The simple solution is to use the maximum page_touched of the page or
the redirect (or any other redirect in the chain, if
$wgMaxRedirects > 1).

Bug: 67849
Change-Id: Ia359aaff6eab34c1d609254055c122a644fa7cce
includes/page/Article.php