Fix URL comparison used for cacheability decision
authorRoan Kattouw <roan.kattouw@gmail.com>
Mon, 16 Feb 2015 20:20:21 +0000 (12:20 -0800)
committerOri.livneh <ori@wikimedia.org>
Mon, 16 Feb 2015 21:30:34 +0000 (21:30 +0000)
commitc7c1c4edbff0a698ddef92ce8672b66b9cb4c0be
tree26dad044e1780648d6d44f700e143dee898b1c28
parent9ee5048e517317c9c6d5dfee5a43db913e758532
Fix URL comparison used for cacheability decision

HTTPS hits were never marked as cacheable, because
getFullRequestURL() (https://...) was being compared to
getSquidURLs() (which are all http://...).

Instead, expand the request URL with PROTO_INTERNAL and
use that for the comparison.

Bug: T89673
Change-Id: I3402820613bc6839fa2e2d053ddffcbf1b17ddb5
includes/MediaWiki.php