[Mod_gzip] mod_gzip and SSI
mod_gzip@lists.over.net
mod_gzip@lists.over.net
Tue, 4 Nov 2003 11:20:17 +0200
Hi,
> Does mod_gzip play well with mod_include or not?
> I have some problems migrating my site to use SSI,
> where apache ignores SSI directives and treats them as a comment.
I am not aware of any relation between mod_gzip and SSI that
would have any effect like this.
And I am successfully using mod_gzip and SSI in combination.
The interpretation of SSI directives is done by the SSI
handler _if_ it is configured appropriately, i. e. assigned
to some file extension or whichever method you prefer (there
are quite a few in the Apache configuration language).
mod_gzip steps in much later, after the request has already
been processed, and then decides whether it should do anything
or not.
There is in fact some relation between SSI and mod_gzip you
might be aware of: SSI allows you to include the content of
other HTTP requests.
So in theory, you might imagine a situation where this content
would be processed, then compressed by mod_gzip, and finally
been included into some other content, which would then cause
the document to contain compressed and uncompressed sections.
But even this is handled correctly by mod_gzip because this
module can identify whether it is dealing with some internal
sub-request of Apache or with some 'normal' request - and it
will process only normal requests, i. e. it will compress the
content of a Server Side Include page only after everything
has been included.
So there should not be any interference between SSI and mod_gzip.
Does the SSI interpretation work if you just disable mod_gzip?
Regards, Michael