Move HTTP 304 check from performRequest to ViewAction
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 25 Aug 2016 00:19:58 +0000 (17:19 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 29 Aug 2016 21:23:16 +0000 (14:23 -0700)
commit20400cb21fd566c1cea4553cd040171096216654
treea7a6d49b6627ad1dceb01143e132417afa3ce665
parente7c7fed77f4ec1248fd920102c72bdb0112bb7b3
Move HTTP 304 check from performRequest to ViewAction

* Follow-up to 8b141886edebc
* The method is now called after the setCdnMaxage() call
  in performAction.
* Allow any CDN urls for the title now, check $wgDebugToolbar,
  and allows caching redirects. The multi-step redirect case does
  not cache however, for simplicity.
* Removed now-unused code in Article that calculated $timestamp.

Change-Id: Ic4f4e3a79d7d386c2f15ca5b11dddf5c57ff9e9f
includes/MediaWiki.php
includes/actions/ViewAction.php
includes/page/Article.php