From: Aurelien Jarno Date: Wed, 14 Feb 2018 09:52:25 +0000 (+0100) Subject: lintian.d.o: fix deflate output filter X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=3c24371dd1b989b5d03c2996b5032f4fd2774720;p=mirror%2Fdsa-puppet.git 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 --- 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