On Sun, 04 Jan 2004 04:03:43 -0800, Brion Vibber wrote:
My test box at home is running Apache 2.0.48 on FreeBSD 5.2rc2, with PHP 4.3.4 installed as an apache filter. For the most part it works fine, but I've noticed an oddity on this system that I haven't seen on the production boxes (always running Apache 1.3.x): with file cache and gzip compression on, the Content-Encoding header is missing on the first send of a newly cached page, so you see raw binary gibberish.
I have no experience with Apache2, so i'm just guessing here. My understanding is that both the file cache and gzip are done in php. Are the original headers stored along with the cached page so that they are used on a cache hit? I have a php cache system in use in the CMS Ariadne, there we use separate dirs for compressed content, uncompressed content, headers. If the headers are cached, my only guess is some whitespace (eg trailing newline) before the cached headers are sent out.
Gabriel Wicke