X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputHandler.php;h=30f193cdd887038a66ae5c1ebe1211853fdb9893;hb=c48bd280b51dc1d61d607f7c07d7afbbabe45512;hp=c6209eebcfbb47ea77b3dabe2d295ba7aaca954a;hpb=0d8e9eacae1f47c60518f871dbb73f4539413d39;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputHandler.php b/includes/OutputHandler.php index c6209eebcf..30f193cdd8 100644 --- a/includes/OutputHandler.php +++ b/includes/OutputHandler.php @@ -137,9 +137,9 @@ function wfGzipHandler( $s ) { } if ( !$foundVary ) { header( 'Vary: Accept-Encoding' ); - global $wgUseXVO; - if ( $wgUseXVO ) { - header( 'X-Vary-Options: Accept-Encoding;list-contains=gzip' ); + global $wgUseKeyHeader; + if ( $wgUseKeyHeader ) { + header( 'Key: Accept-Encoding;match=gzip' ); } } return $s; @@ -162,7 +162,7 @@ function wfMangleFlashPolicy( $s ) { } /** - * Add a Content-Length header if possible. This makes it cooperate with squid better. + * Add a Content-Length header if possible. This makes it cooperate with CDN better. * * @param int $length */