Last modified: 2012-02-12 19:36:17 UTC
When using file cache and enabling gzip, output is garbage. Configuration used: $wgUseFileCache = true; $wgUseGzip = true; Had the issue with REL1_18 and trunk but not with REL1_17. So that looks like a 1.18 regression :-(
I recall this issue always being reported over the years, though I couldn't reproduce it. The things to check for are: a) file cache code and $wgUseGzip, including ACCEPT-ENCODING handling code b) any output buffering and gzip calls MW has...there used to be a hack in LocalSettings.php to override PHP defaults c) the php.ini settings for output compresssion
still seeing this after using Aaron's suggestions?
Requesting without accepting gzip $ curl -s http://trunk.dev/index.php/Main_Page | tail -2 <!-- Cached/compressed 20120208070016 --> </html> $ When accepting gzip, I need to unzip the output twice: $ curl -s -H 'ACCEPT-ENCODING: gzip' http://trunk.dev/index.php/Main_Page | zcat | zcat | tail -2 <!-- Cached/compressed 20120208070016 --> </html> $
Patch attempt with r111028. Pending review.
I have reverted the attempt above with r111322. See Aaron comment on r111028.