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:
parent
1e701d1578
commit
a4b0c48dea
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue