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

This commit is contained in:
Brion Vibber 2003-06-09 19:16:38 +00:00
parent 1e701d1578
commit a4b0c48dea

View file

@ -1667,9 +1667,11 @@ name=\"wpSummary\" maxlength=200 size=60><br>
} 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;