r69770 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69769‎ | r69770 | r69771 >
Date:05:00, 23 July 2010
Author:tstarling
Status:ok
Tags:
Comment:
Send XVO headers only if $wgUseXVO is true.
Modified paths:
  • /trunk/phase3/includes/OutputHandler.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputHandler.php
@@ -90,7 +90,10 @@
9191 }
9292 if ( !$foundVary ) {
9393 header( 'Vary: Accept-Encoding' );
94 - header( 'X-Vary-Options: Accept-Encoding;list-contains=gzip' );
 94+ global $wgUseXVO;
 95+ if ( $wgUseXVO ) {
 96+ header( 'X-Vary-Options: Accept-Encoding;list-contains=gzip' );
 97+ }
9598 }
9699 return $s;
97100 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r69985MFT r69770, r69771: X-Vary-Options fixes.tstarling03:34, 27 July 2010

Status & tagging log