Antwort: [Mod_gzip] Bypass mod_gzip using rspheader
mod_gzip@lists.over.net
mod_gzip@lists.over.net
Tue, 17 Jun 2003 20:33:11 +0200
Hallo Jens,
> I have some pages that use a server-push to update a
> progress indicator in the client's browser.
> Naturally, this does not work with mod_gzip as mod_gzip
> always waits until it has received all data to send.
> To work around this, I have added this line to the
> mod_gzip configuration:
> mod_gzip_item_exclude rspheader X-No-GZIP:.*
> and added a "X-No-GZIP: Yes" header to all these pages.
>
> Unfortunately, this does not work as well. The page is
> not compressed, but is still only send out after it has
> been completed.
>
> Any ideas on how to solve this?
in any case like that, you may disable mod_gzip for
your selected URL (or URL subspace) using the
container directives provided by the Apache server
itself.
Let's say you have just one URL that you want to be
served without mod_gzip messing in, then you might
configure something like:
<Location /your_precious_server_push_url>
mod_gzip_on no
</Location>
And mod_gzip will not even be invoked to check
whether there is something to do for it.
If you have more than one such URL, then <Directory>
or <LocationMatch> or any such directive may well
do the trick - just look which one suits you best.
If all you need is to completely disable mod_gzip,
don't try to do this with mod_gzip's filter rules,
as Apache provide better mechanisms for that.
(Readers of this list may remember the issue of the
Internet Explorer having problems with images that
are sent with a "Vary:" header - this is just the
same situation.)
Viele Grüße
Michael