]> git.pld-linux.org Git - packages/apache.git/blame - apache-mod_deflate.conf
- disable itk by default (last release 2009), try mod_ruid2
[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:
4cc0aadd 5AddOutputFilterByType DEFLATE application/javascript application/x-javascript
072b7371
PG
6AddOutputFilterByType DEFLATE application/x-httpd-php
7AddOutputFilterByType DEFLATE application/xhtml+xml
8AddOutputFilterByType DEFLATE image/svg+xml
9AddOutputFilterByType DEFLATE text/css
10AddOutputFilterByType DEFLATE text/html
11AddOutputFilterByType DEFLATE text/plain
12AddOutputFilterByType DEFLATE text/xml
97a61129
PG
13
14# Compress all and exclude only few things - may cause some problems:
15#SetOutputFilter DEFLATE
cb493530 16
e5ce5b58 17<IfModule mod_setenvif.c>
408714fc
ER
18 # Netscape 4.x has some problems...
19 BrowserMatch ^Mozilla/4 gzip-only-text/html
cb493530 20
408714fc
ER
21 # Netscape 4.06-4.08 have some more problems
22 BrowserMatch ^Mozilla/4\.0[678] no-gzip
cb493530 23
408714fc
ER
24 # MSIE masquerades as Netscape, but it is fine
25 BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
cb493530 26
408714fc
ER
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
e5ce5b58 30</IfModule>
4defb993 31
e5ce5b58 32<IfModule mod_headers.c>
408714fc
ER
33 # Make sure proxies don't deliver the wrong content
34 Header append Vary User-Agent env=!dont-vary
e5ce5b58 35</IfModule>
This page took 0.048895 seconds and 4 git commands to generate.