aboutsummaryrefslogtreecommitdiff
path: root/htaccess_dist
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-11 13:56:15 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-11 13:56:15 +0000
commitd559f6791e2bbc1e3514ae7db05f5ce787cec79f (patch)
tree3e2e58d577e244d8a4f4185cc5a9cd8a23ce71ef /htaccess_dist
parent461454b7d766ea8cfa406830aae79d7c7cea64a1 (diff)
downloadelgg-d559f6791e2bbc1e3514ae7db05f5ce787cec79f.tar.gz
elgg-d559f6791e2bbc1e3514ae7db05f5ce787cec79f.tar.bz2
Mod deflate support added
git-svn-id: https://code.elgg.org/elgg/trunk@2439 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'htaccess_dist')
-rw-r--r--htaccess_dist10
1 files changed, 9 insertions, 1 deletions
diff --git a/htaccess_dist b/htaccess_dist
index 91e0797cd..cc4697082 100644
--- a/htaccess_dist
+++ b/htaccess_dist
@@ -60,7 +60,7 @@ ExpiresDefault "access plus 10 years"
mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
- mod_gzip_minimum_file_size 1002
+ mod_gzip_minimum_file_size 1000
mod_gzip_maximum_file_size 1000000
mod_gzip_maximum_inmem_size 1000000
mod_gzip_item_include file \.htm$
@@ -76,6 +76,14 @@ ExpiresDefault "access plus 10 years"
mod_gzip_item_exclude mime ^image/.gif
</IfModule>
+# Apache2 deflate support if available
+<IfModule mod_deflate.c>
+ AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
+ BrowserMatch ^Mozilla/4\.0[678] no-gzip
+ BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+</IfModule>
+
<IfModule mod_rewrite.c>
RewriteEngine on