lintian.d.o: fix deflate output filter
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 14 Feb 2018 09:52:25 +0000 (10:52 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 14 Feb 2018 09:52:25 +0000 (10:52 +0100)
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 <aurelien@aurel32.net>
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb

index ec36a14..fea7de7 100644 (file)
                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
        </Directory>
 
        <Directory /srv/static.debian.org/mirrors/lintian.debian.org/cur/resources>
                # 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
        </Directory>
 
        RewriteEngine on