From c35938e1808b35aa3aa36e722e9a354ce2ff98b5 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 6 May 2019 19:51:56 -0700 Subject: [PATCH] apache: Serve SVG files compressed using gzip - SVG is not one of the formats for which compress is turned on automatically by Apache configuration. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- data/etc/apache2/conf-available/freedombox.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/etc/apache2/conf-available/freedombox.conf b/data/etc/apache2/conf-available/freedombox.conf index 2571ac736..f650cab65 100644 --- a/data/etc/apache2/conf-available/freedombox.conf +++ b/data/etc/apache2/conf-available/freedombox.conf @@ -21,3 +21,10 @@ RedirectMatch "^/freedombox" "/plinth" RewriteRule /favicon\.ico$ "/plinth/static/theme/img/favicon.ico" [PT] + +## +## Serve SVG files compressed using gzip. +## + + AddOutputFilterByType DEFLATE image/svg+xml +