Forum Moderators: phranque

Message Too Old, No Replies

Compression does not work with deflate

compression,deflate

         

find101

7:30 am on Jan 3, 2006 (gmt 0)

10+ Year Member



Hi
My isp has installed deflate module; it is not enabled by default; they asked me to add the following in the .htaccess file.

allow from all
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
SetInputFilter DEFLATE
#the two above compress everything unless excluded below
#SetEnvIfNoCase Request_URI \.(?:gif¦jpe?g¦png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe¦t?gz¦zip¦bz2¦sit¦rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.plist$ no-gzip dont-vary
# Below is an example where you get rid of what's above and you explicity compress
#AddOutputFilterByType DEFLATE application/x-httpd-php application/x-httpd-fastphp application/x-httpd-eruby text/*
DeflateFilterNote ratio
DeflateCompressionLevel 5
</IfModule>

Still it does not compress;

Any help is appreciated
thanks