]> git.pld-linux.org Git - packages/apache.git/blame - apache-mod_deflate.conf
- up to 2.4.59
[packages/apache.git] / apache-mod_deflate.conf
CommitLineData
408714fc 1LoadModule deflate_module modules/mod_deflate.so
4defb993 2
97a61129 3# Safe but working settings - compress only that types:
9c8559e9 4AddOutputFilterByType DEFLATE application/javascript application/x-javascript text/javascript
072b7371
PG
5AddOutputFilterByType DEFLATE application/x-httpd-php
6AddOutputFilterByType DEFLATE application/xhtml+xml
7AddOutputFilterByType DEFLATE image/svg+xml
8AddOutputFilterByType DEFLATE text/css
9AddOutputFilterByType DEFLATE text/html
10AddOutputFilterByType DEFLATE text/plain
11AddOutputFilterByType DEFLATE text/xml
97a61129
PG
12
13# Compress all and exclude only few things - may cause some problems:
14#SetOutputFilter DEFLATE
cb493530 15
e5ce5b58 16<IfModule mod_setenvif.c>
408714fc
ER
17 # Netscape 4.x has some problems...
18 BrowserMatch ^Mozilla/4 gzip-only-text/html
cb493530 19
408714fc
ER
20 # Netscape 4.06-4.08 have some more problems
21 BrowserMatch ^Mozilla/4\.0[678] no-gzip
cb493530 22
408714fc
ER
23 # MSIE masquerades as Netscape, but it is fine
24 BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
cb493530 25
408714fc
ER
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
e5ce5b58 29</IfModule>
4defb993 30
e5ce5b58 31<IfModule mod_headers.c>
408714fc 32 # Make sure proxies don't deliver the wrong content
9d54f7b0 33 Header append Vary Accept-Encoding env=!dont-vary
e5ce5b58 34</IfModule>
This page took 0.043294 seconds and 4 git commands to generate.