From fdb128ac0ad472854b4fef6ca691ef81fecd3403 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 3 Mar 2009 17:34:48 +0000 Subject: Improved .htaccess git-svn-id: https://code.elgg.org/elgg/trunk@3046 36083f99-b078-4883-b0ff-0f9b5a30f544 --- htaccess_dist | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/htaccess_dist b/htaccess_dist index a3cd69341..4237460a0 100644 --- a/htaccess_dist +++ b/htaccess_dist @@ -73,20 +73,20 @@ DirectoryIndex index.php # 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\.[0678] no-gzip -# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html -# Header append Vary User-Agent env=!dont-vary + + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript + BrowserMatch ^Mozilla/4 gzip-only-text/html + BrowserMatch ^Mozilla/4\.[0678] no-gzip + BrowserMatch \bMSIE !no-gzip + Header append Vary User-Agent env=!dont-vary # The following is to disable compression for actions. The reason being is that these # may offer direct downloads which (since the initial request comes in as text/html and headers # get changed in the script) get double compressed and become unusable when downloaded by IE. -# SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary -# SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary + SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary + SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary -# + # Configure ETags -- cgit v1.2.3