]> TLD Linux GIT Repositories - packages/apache.git/blob - apache-mod_deflate.conf
- noone cares for those cvs lines
[packages/apache.git] / apache-mod_deflate.conf
1  apache-mod_deflate.conf,v 1.12 2011/08/13 19:27:46 glen Exp $
2 LoadModule deflate_module               modules/mod_deflate.so
3
4 # Safe but working settings - compress only that types:
5 AddOutputFilterByType DEFLATE application/javascript application/x-javascript text/javascript
6 AddOutputFilterByType DEFLATE application/x-httpd-php
7 AddOutputFilterByType DEFLATE application/xhtml+xml
8 AddOutputFilterByType DEFLATE image/svg+xml
9 AddOutputFilterByType DEFLATE text/css
10 AddOutputFilterByType DEFLATE text/html 
11 AddOutputFilterByType DEFLATE text/plain
12 AddOutputFilterByType DEFLATE text/xml
13
14 # Compress all and exclude only few things - may cause some problems:
15 #SetOutputFilter DEFLATE
16
17 <IfModule mod_setenvif.c>
18         # Netscape 4.x has some problems...
19         BrowserMatch ^Mozilla/4 gzip-only-text/html
20
21         # Netscape 4.06-4.08 have some more problems
22         BrowserMatch ^Mozilla/4\.0[678] no-gzip
23
24         # MSIE masquerades as Netscape, but it is fine
25         BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
26
27         SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
28         SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
29         SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar|iso)$ no-gzip dont-vary
30 </IfModule>
31
32 <IfModule mod_headers.c>
33         # Make sure proxies don't deliver the wrong content
34         Header append Vary Accept-Encoding env=!dont-vary
35 </IfModule>