janispagel.de

Source code for https://janispagel.de
Log | Files | Refs | README | LICENSE

commit 17678b5ec61fcff408407f230755de6e3185ecde
parent b94e35615026e45d63c9df824d1f57f4824226f4
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Fri, 26 Jun 2020 15:51:40 +0200

Enable gzip compression

Diffstat:
M.htaccess | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/.htaccess b/.htaccess @@ -6,3 +6,14 @@ Header set Strict-Transport-Security: "max-age=63072000; includeSubDomains; prel AddType text/plain .asc AddCharset utf-8 .html .txt .bib .ris + +<ifModule mod_gzip.c> +mod_gzip_on Yes +mod_gzip_dechunk Yes +mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ +mod_gzip_item_include handler ^cgi-script$ +mod_gzip_item_include mime ^text/.* +mod_gzip_item_include mime ^application/x-javascript.* +mod_gzip_item_exclude mime ^image/.* +mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* +</ifModule>