On Jan 4, 2004, at 05:57, Gabriel Wicke wrote:
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?
The script sends out both the headers and the content. The content is taken from a cached file if possible.
I should stress again: the headers are *fine* when the already cached file is sent out or when an uncached page is rendered and sent out. The headers are *wrong* *with Apache 2 only* when we first *make* the cached file and send it out.
Changing the default charset or encoding is irrelevant, since we override them and that override is what should be visible. Getting UTF-8 when you expected ISO 8859-1 (or vice versa!) or uncompressed when you expected gzip is a symptom, not the disease.
-- brion vibber (brion @ pobox.com)