]> git.pld-linux.org Git - packages/apache.git/blame - apache-mod_deflate.conf
- lets compress php output too
[packages/apache.git] / apache-mod_deflate.conf
CommitLineData
e5ce5b58 1# $Id$
408714fc 2LoadModule deflate_module modules/mod_deflate.so
4defb993 3
97a61129 4# Safe but working settings - compress only that types:
cb32c024 5AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
97a61129
PG
6
7# Compress all and exclude only few things - may cause some problems:
8#SetOutputFilter DEFLATE
cb493530 9
e5ce5b58 10<IfModule mod_setenvif.c>
408714fc
ER
11 # Netscape 4.x has some problems...
12 BrowserMatch ^Mozilla/4 gzip-only-text/html
cb493530 13
408714fc
ER
14 # Netscape 4.06-4.08 have some more problems
15 BrowserMatch ^Mozilla/4\.0[678] no-gzip
cb493530 16
408714fc
ER
17 # MSIE masquerades as Netscape, but it is fine
18 BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
cb493530 19
408714fc
ER
20 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
21 SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
22 SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar|iso)$ no-gzip dont-vary
e5ce5b58 23</IfModule>
4defb993 24
e5ce5b58 25<IfModule mod_headers.c>
408714fc
ER
26 # Make sure proxies don't deliver the wrong content
27 Header append Vary User-Agent env=!dont-vary
e5ce5b58 28</IfModule>
This page took 0.029841 seconds and 4 git commands to generate.