From a4b0c48dea87f5e98aa565f6249647ba04b09e1b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 9 Jun 2003 19:16:38 +0000 Subject: [PATCH] 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 --- includes/Article.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.20.1