aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-03 17:34:48 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-03 17:34:48 +0000
commitfdb128ac0ad472854b4fef6ca691ef81fecd3403 (patch)
tree92bd73efdffb4164e419ca70b753a838f1d7f5f7
parent7c001993ab645dcbe32fc908a912a06f9efa00a7 (diff)
downloadelgg-fdb128ac0ad472854b4fef6ca691ef81fecd3403.tar.gz
elgg-fdb128ac0ad472854b4fef6ca691ef81fecd3403.tar.bz2
Improved .htaccess
git-svn-id: https://code.elgg.org/elgg/trunk@3046 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--htaccess_dist18
1 files 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
</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\.[0678] no-gzip
-# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
-# Header append Vary User-Agent env=!dont-vary
+<IfModule mod_deflate.c>
+ 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
-#</IfModule>
+</IfModule>
# Configure ETags
<FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf)$">