[Mod_gzip] [ANNOUNCEMENT] mod_gzip 1.3.26.1a
Todd Vierling
mod_gzip@lists.over.net
Wed, 2 Oct 2002 17:29:22 -0400 (EDT)
On Tue, 1 Oct 2002, Christian Kruse wrote:
: * Vary bugfix
: But now this is not longer necessary. mod_gzip sends no
: Vary headers when the request is excluded by 'file', 'uri' or
: 'handler'.
This still isn't quite right.
It shouldn't send Vary on anything which is not *included* (i.e. "it
shouldn't be necessary to exclude something explicitly if mod_gzip won't
touch it based on include directives"). My config, for instance, is quite
simple and succinct about what it allows to be gzipped:
mod_gzip_item_include mime ^httpd/unix-directory
mod_gzip_item_include mime ^text/
mod_gzip_item_exclude file \.css$
mod_gzip_item_exclude file \.js$
You'll note that this set doesn't include any "image/" MIME types, nor any
"application/" MIME types, and indeed, these files types are never
compressed. Yet I'm still getting "Vary:" headers on these if I don't
explicitly turn them off.
Also, the note above says nothing at all about matching on MIME types.
Testing indicates that
mod_gzip_item_exclude mime ^image/
mod_gzip_item_exclude mime ^application/
does not, in fact, turn off the Vary: headers.
So there's still some work to be done on making the Vary: generation
smarter. 8-)
--
-- Todd Vierling <tv@pobox.com>