From: Tim Starling Date: Fri, 23 Jul 2010 05:00:58 +0000 (+0000) Subject: Send XVO headers only if $wgUseXVO is true. X-Git-Tag: 1.31.0-rc.0~35998 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=4c94b8a9ec6039734ab09e123d7efd34cd0a0fc7;p=lhc%2Fweb%2Fwiklou.git Send XVO headers only if $wgUseXVO is true. --- diff --git a/includes/OutputHandler.php b/includes/OutputHandler.php index a55adc5370..91819cc76a 100644 --- a/includes/OutputHandler.php +++ b/includes/OutputHandler.php @@ -90,7 +90,10 @@ function wfGzipHandler( $s ) { } if ( !$foundVary ) { header( 'Vary: Accept-Encoding' ); - header( 'X-Vary-Options: Accept-Encoding;list-contains=gzip' ); + global $wgUseXVO; + if ( $wgUseXVO ) { + header( 'X-Vary-Options: Accept-Encoding;list-contains=gzip' ); + } } return $s; }