From 04c64a706819a2c8cd8123fceab22b8b102b099e Mon Sep 17 00:00:00 2001 From: David Moreau-Simard Date: Fri, 3 Mar 2017 09:14:01 -0500 Subject: [PATCH] Allow logs.o.o to server gzipped svg files We tested an addition to the logs-dev.o.o vhost in https://review.openstack.org/#/c/435566/ in order to properly detect and serve .svg.gz files and it works well. Let's do it on logs.o.o. Change-Id: I1305f7e1c4fe02269eccd60fe8d49419d8372b59 --- templates/logs.vhost.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/logs.vhost.erb b/templates/logs.vhost.erb index 843ca8f..cae2469 100644 --- a/templates/logs.vhost.erb +++ b/templates/logs.vhost.erb @@ -21,7 +21,7 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %> # use Apache to compress the results afterwards, to save on the wire # it's approx 18x savings of wire traffic to compress. We need to # compress by content types that htmlify can produce - AddOutputFilterByType DEFLATE text/plain text/html application/x-font-ttf + AddOutputFilterByType DEFLATE text/plain text/html application/x-font-ttf image/svg+xml ForceType text/html @@ -42,6 +42,10 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %> ForceType application/x-font-ttf AddEncoding x-gzip gz + + ForceType image/svg+xml + AddEncoding x-gzip gz + # mod_mime_magic is sometimes passing css files as asm sources # e.g css files generated by coverage reports