[Mod_gzip] PDF and other big files

Zorglub2 mod_gzip@lists.over.net
Wed, 23 Oct 2002 23:58:44 +0200


Hi all,

Being a new Mod_gzip user, I'm exploring the possibilities of this
useful tool.

We use Apache 1.3.26 with Mod_gzip 1.3.26.
We managed to successfully install Mod_gzip.

My need is to compress the PDF files wich go from my Web server to the
Web browsers (IE5.5SP2)

1. Can I compress PDF files ?
2. What if they are really big (like 2Mo) ?

It doesn't seem to work with the following config...

Thank you for sharing your experience.
This mailing-list has been really useful for us (we uninstalled IHS and
downloaded Apache right away :))

Rémi Morlot
rmorlot@infact.fr


Our config is below :


> <IfModule mod_gzip.c>
> mod_gzip_on                   Yes
> mod_gzip_can_negotiate        Yes
> mod_gzip_static_suffix .gz
> AddEncoding gzip .gz
> mod_gzip_update_static No
> mod_gzip_command_version      '/mod_gzip_status'
> mod_gzip_keep_workfiles       No
> mod_gzip_handle_methods GET POST 
> mod_gzip_item_exclude         reqheader  "User-agent:
Mozilla/4.0[678]"
> mod_gzip_item_include         file       \.html$
> mod_gzip_item_exclude         file       \.js$
> mod_gzip_item_exclude         file       \.css$
> mod_gzip_item_include         file       \.pl$
> mod_gzip_item_include         file       \.pdf$
> mod_gzip_item_include         handler    ^cgi-script$
> mod_gzip_item_include         mime       ^application/pdf$
> mod_gzip_item_include         mime       ^text/html$
> mod_gzip_item_include         mime       ^text/plain$
> mod_gzip_item_include         mime       ^httpd/unix-directory$
> mod_gzip_item_exclude         mime       ^image/
> mod_gzip_dechunk              Yes
> mod_gzip_send_vary Yes
> </IfModule>