janispagel.de

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

commit 06ec4cb5af7ddd71d1b4e3669f517c4af222f6aa
parent 037b099013338a87e55b84169dd6d21d9d9e47cc
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sat, 27 Jun 2020 23:00:20 +0200

Make gzip compression finally work

Diffstat:
M.htaccess | 19+++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/.htaccess b/.htaccess @@ -7,16 +7,15 @@ 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|scss|js|php|pl|svg|jpg|png|eot|ttf|woff|pdf|xml|asc|bib|ris)$ -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> +AddOutputFilterByType DEFLATE text/plain +AddOutputFilterByType DEFLATE text/html +AddOutputFilterByType DEFLATE text/xml +AddOutputFilterByType DEFLATE text/css +AddOutputFilterByType DEFLATE application/xml +AddOutputFilterByType DEFLATE application/xhtml+xml +AddOutputFilterByType DEFLATE application/rss+xml +AddOutputFilterByType DEFLATE application/javascript +AddOutputFilterByType DEFLATE application/x-javascript # Cache one month for image files <filesMatch ".(jpg|jpeg|png|gif|ico)$">