Brion Vibber wrote:
Jim Higson wrote:
I've just noticed that with 1.4 raw text isn't sent compressed.
A quick test confirms that it *is* sent compressed when requested by the user agent, just as other page views are. For it to behave otherwise would be surprising, since the default LocalSettings.php engages compression buffering before the check for the 'action' parameter is made.
You can test this by doing for instance 'telnet en.wikipedia.org 80' and pasting in this request:
GET /w/index.php?title=Cornell_Box&action=raw HTTP/1.1 Host: en.wikipedia.org Accept-Encoding: gzip
You'll get back some lovely binary garbage. Try it again without the Accept-Encoding header, and you see lovely plain text.
My mistake - just seen what my problem is, it was to do with my program not setting the headers properly, and a bit of weirdness from my browser. Using telnet is rather a neat demo :)
If you've got a problem on your own site, check that your PHP installation is configured with zlib support and that you haven't removed the compression line from your LocalSettings.php.
No problem on my site, but thanks.
Jim