From cc65b6354e74d8fa47c8f5c881318dcc8b49433c Mon Sep 17 00:00:00 2001 From: Chris Croome Date: Sun, 9 Dec 2018 21:22:05 +0000 Subject: [PATCH] gzip svg, css and js files --- htaccess | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htaccess b/htaccess index 2867dfb..58c7f38 100644 --- a/htaccess +++ b/htaccess @@ -5,9 +5,14 @@ permalink: .htaccess # Serve .html files without extensions Options +MultiViews # If a SVG and a PNG exists the prefer the SVG -AddType image/svg+xml;qs=0.9 svg +AddType image/svg+xml;qs=0.9 svg sgvz AddType image/png;qs=0.8 png # Work around Apache bug from 2002 # https://bz.apache.org/bugzilla/show_bug.cgi?id=53595 # https://kevinlocke.name/bits/2012/07/20/serving-xhtml-with-apache-multiviews/ Header always edit "Content-Type" ";\s*qs=[0-9]*(?:\.[0-9]+)?\s*" "" +# Gzip these file types +AddOutputFilter DEFLATE svg +AddOutputFilter DEFLATE css +AddOutputFilter DEFLATE js +