[Mod_gzip] Application/pdf and mod_gzip
mod_gzip@lists.over.net
mod_gzip@lists.over.net
Mon, 2 Feb 2004 14:23:30 +0100
Hi Marc,
> I have some problems using mod_gzip with application/pdf content.
> I excluded this mime type from the compression in my config
you should rather disable mod_gzip for this MIME type.
> I tried to remove the "Vary:Accept-Encoding" header by adding the
> header "Pragma: no-cache", but it doesn't apparently work.
No. Why should adding header remove another one?
> May my problems a consequence of the "vary" header,
Quite possible, especially as you claim the PDF files to
not be compressed.
> and if yes, how can i remove it ?
Disable mod_gzip for a <Files> pattern that describes your
PDF files, i. e. replace your "mod_item_exclude" rule for
PDF files by something like
<FilesMatch \.pdf$>
mod_gzip_on no
</FilesMatch>
Regards, Michael