]> git.pld-linux.org Git - packages/apache.git/blob - apache-mod_deflate.conf
- lets compress php output too
[packages/apache.git] / apache-mod_deflate.conf
1 # $Id$
2 LoadModule deflate_module               modules/mod_deflate.so
3
4 # Safe but working settings - compress only that types:
5 AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
6
7 # Compress all and exclude only few things - may cause some problems:
8 #SetOutputFilter DEFLATE
9
10 <IfModule mod_setenvif.c>
11         # Netscape 4.x has some problems...
12         BrowserMatch ^Mozilla/4 gzip-only-text/html
13
14         # Netscape 4.06-4.08 have some more problems
15         BrowserMatch ^Mozilla/4\.0[678] no-gzip
16
17         # MSIE masquerades as Netscape, but it is fine
18         BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
19
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
23 </IfModule>
24
25 <IfModule mod_headers.c>
26         # Make sure proxies don't deliver the wrong content
27         Header append Vary User-Agent env=!dont-vary
28 </IfModule>
This page took 0.029236 seconds and 4 git commands to generate.