From e49d27a5ea722e15a9185226b1a61ab36c5070ac Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 26 Nov 2013 08:54:12 +0100 Subject: [PATCH] use mod_gzip --- .htaccess | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.htaccess b/.htaccess index 8c07dd3..9bb05ed 100644 --- a/.htaccess +++ b/.htaccess @@ -4,5 +4,21 @@ ExpiresDefault "access plus 1 week" +# zip zip zip + +mod_gzip_on Yes +mod_gzip_dechunk Yes + +mod_gzip_minimum_file_size 300 + +mod_gzip_item_include file .(html?|txt|css|js|json|php|pl)$ +mod_gzip_item_include handler ^cgi-script$ + +mod_gzip_item_include mime ^application/x-javascript.* +mod_gzip_item_exclude mime ^image/.* +mod_gzip_item_include mime ^text/.* +mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* + + # early charset AddDefaultCharset UTF-8