diff options
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
|