From 4c94b8a9ec6039734ab09e123d7efd34cd0a0fc7 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 23 Jul 2010 05:00:58 +0000 Subject: [PATCH] Send XVO headers only if $wgUseXVO is true. --- includes/OutputHandler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.20.1