From: Brion Vibber Date: Mon, 9 Jun 2003 19:16:38 +0000 (+0000) Subject: Don't send the compressed version of the cache to a browser that won't take it when... X-Git-Tag: 1.1.0~493 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=a4b0c48dea87f5e98aa565f6249647ba04b09e1b;p=lhc%2Fweb%2Fwiklou.git Don't send the compressed version of the cache to a browser that won't take it when generating new cached page; this had made Safari rather difficult to use --- diff --git a/includes/Article.php b/includes/Article.php index 078dc8bff2..85617c3160 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1667,9 +1667,11 @@ name=\"wpSummary\" maxlength=200 size=60>
} else { wfDebug(" failed to write gzip, still sending\n" ); } - header( "Content-Encoding: gzip" ); - header( "Vary: Accept-Encoding" ); - return $gzout; + if(wfClientAcceptsGzip()) { + header( "Content-Encoding: gzip" ); + header( "Vary: Accept-Encoding" ); + return $gzout; + } } } return $text;