From d559f6791e2bbc1e3514ae7db05f5ce787cec79f Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 11 Nov 2008 13:56:15 +0000 Subject: Mod deflate support added git-svn-id: https://code.elgg.org/elgg/trunk@2439 36083f99-b078-4883-b0ff-0f9b5a30f544 --- htaccess_dist | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 +# Apache2 deflate support if available + + 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 + + RewriteEngine on -- cgit v1.2.3