From 3c24371dd1b989b5d03c2996b5032f4fd2774720 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Wed, 14 Feb 2018 10:52:25 +0100 Subject: [PATCH] lintian.d.o: fix deflate output filter It appears that AddOutputFilterByType options also apply to the subdirectories. However this directive overwrites the default value or the one defined in the parent directory. Therefore we only want to add this directive to the root directory and with all the mime types. Signed-off-by: Aurelien Jarno --- .../templates/static-mirroring/vhost/static-vhosts-simple.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb index ec36a14df..fea7de7e5 100644 --- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb +++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb @@ -126,14 +126,13 @@ AddEncoding x-gzip .gz AddType text/plain .log - AddOutputFilterByType DEFLATE text/plain + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css image/svg+xml # Cache these for a year (3600 * 24 * 365.25) # Files in here will change name if their content change Header set Cache-Control "max-age=31557600, public" - AddOutputFilterByType DEFLATE image/svg+xml RewriteEngine on -- 2.20.1