From ab9c7b68bf6cc73c61f5a3cba6a48438cf7ca7a6 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 5 Jan 2009 13:16:14 +0000 Subject: 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 --- htaccess_dist | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'htaccess_dist') 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 + # Configure ETags -- cgit v1.2.3