diff options
author | Juha Sippola <juhasippola@outlook.com> | 2015-07-10 15:20:51 +0300 |
---|---|---|
committer | Tony Sarajärvi <tony.sarajarvi@theqtcompany.com> | 2015-09-16 07:33:09 +0000 |
commit | da4eb7097114910476102b48d5586b02fabc02ea (patch) | |
tree | 68818eea084e4816126863a77344d8be59e392d3 /non-puppet/qtmetrics2/.htaccess | |
parent | bcf30a2fd9a09fc2f01f820a3d012f05fda86afe (diff) |
Qt Metrics 2 (v0.12.1): HTML compression
Enabled compression for selected media types
(Apache mod_deflate).
Change-Id: I58805f8053d5e86476c24a2f4e7c3f23b7bf529e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@theqtcompany.com>
Diffstat (limited to 'non-puppet/qtmetrics2/.htaccess')
-rw-r--r-- | non-puppet/qtmetrics2/.htaccess | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/non-puppet/qtmetrics2/.htaccess b/non-puppet/qtmetrics2/.htaccess index 095fd43..85d194e 100644 --- a/non-puppet/qtmetrics2/.htaccess +++ b/non-puppet/qtmetrics2/.htaccess @@ -32,8 +32,8 @@ ############################################################################# # Qt Metrics configuration -# @version 0.2 -# @since 17-06-2015 +# @version 0.3 +# @since 09-07-2015 # @author Juha Sippola # Turn on the rewriting engine @@ -51,6 +51,21 @@ RewriteEngine On Header set X-XSS-Protection "1; mode=block" </IfModule> +# Compress all output labeled with one of the following media types +<IfModule mod_deflate.c> + <IfModule mod_filter.c> + AddOutputFilterByType DEFLATE \ + "application/javascript" \ + "application/json" \ + "application/xml" \ + "text/css" \ + "text/html" \ + "text/javascript" \ + "text/plain" \ + "text/xml" + </IfModule> +</IfModule> + # If the requested file does not exist, show link to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] |