diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-05 13:16:14 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-05 13:16:14 +0000 |
commit | ab9c7b68bf6cc73c61f5a3cba6a48438cf7ca7a6 (patch) | |
tree | 5ebe97ebe4a367bdc43b13747e8202f8388b7536 /htaccess_dist | |
parent | 000335ccb23511fa28fb5000d13bcf6c9e6215a4 (diff) | |
download | elgg-ab9c7b68bf6cc73c61f5a3cba6a48438cf7ca7a6.tar.gz elgg-ab9c7b68bf6cc73c61f5a3cba6a48438cf7ca7a6.tar.bz2 |
Closes #656: Disabled mod_deflate for all actions so that active downloads will no longer be double compressed.
git-svn-id: https://code.elgg.org/elgg/trunk@2531 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'htaccess_dist')
-rw-r--r-- | htaccess_dist | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/htaccess_dist b/htaccess_dist index 2d6852956..52f2f8a7c 100644 --- a/htaccess_dist +++ b/htaccess_dist @@ -78,6 +78,14 @@ DirectoryIndex index.php BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+ 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
+
</IfModule>
# Configure ETags
|