r93437 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93436‎ | r93437 | r93438 >
Date:22:37, 28 July 2011
Author:preilly
Status:ok
Tags:
Comment:
fixing caching
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -229,9 +229,10 @@
230230
231231 private function disableCaching() {
232232 if ( isset( $_SERVER['HTTP_VIA'] ) &&
233 - stripos( $_SERVER['HTTP_VIA'], '.wikimedia.org:' ) !== false ) {
234 - header( "Cache-Control: no-cache, must-revalidate" ); // HTTP/1.1
235 - header( "Expires: Sat, 26 Jul 1997 05:00:00 GMT" ); // Date in the past
 233+ stripos( $_SERVER['HTTP_VIA'], '.wikimedia.org:3128' ) !== false ) {
 234+ header( 'Cache-Control: no-cache, must-revalidate' );
 235+ header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
 236+ header( 'Pragma: no-cache' );
236237 }
237238 }
238239

Follow-up revisions

RevisionCommit summaryAuthorDate
r93438fixing cachingpreilly22:40, 28 July 2011

Status & tagging log