]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache-mod_deflate.conf
- release 10
[packages/apache.git] / apache-mod_deflate.conf
index e8bbc4a4ae8ce4b9d83de383629f2d960b4bfc4b..275585fb006204a763646b57a28b8825b30502e9 100644 (file)
@@ -1,7 +1,18 @@
 # $Id$
 LoadModule deflate_module              modules/mod_deflate.so
 
-SetOutputFilter DEFLATE
+# Safe but working settings - compress only that types:
+AddOutputFilterByType DEFLATE application/javascript application/x-javascript
+AddOutputFilterByType DEFLATE application/x-httpd-php
+AddOutputFilterByType DEFLATE application/xhtml+xml
+AddOutputFilterByType DEFLATE image/svg+xml
+AddOutputFilterByType DEFLATE text/css
+AddOutputFilterByType DEFLATE text/html 
+AddOutputFilterByType DEFLATE text/plain
+AddOutputFilterByType DEFLATE text/xml
+
+# Compress all and exclude only few things - may cause some problems:
+#SetOutputFilter DEFLATE
 
 <IfModule mod_setenvif.c>
        # Netscape 4.x has some problems...
This page took 0.028008 seconds and 4 git commands to generate.