Rene Pijlman wrote:
Brion Vibber:
The point of compressing the file cache is of course to save disk space. Since this is a legitimate thing to do, I don't think there's a need to remove that option.
Hmm, I assumed this was intended to compress the data that is sent to the client.
That's just a nifty side effect. :)
An optimization would be to solve it the other way around: decide per request to not compress with ob_gzhandler when the file is available in compressed form in the file cache.
ob_end_clean() would probably disable the handler correctly... you might try slipping a call in and see if that does it. The comments in the manual indicate that it may still _call_ the ob_gzhandler function (so will modify the headers) but won't output any data.
The main potential problem with this would be that ob_gzhandler might have a different idea of what accepts gzip than we do.
-- brion vibber (brion @ pobox.com)