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