From 524d236b80d556f6e1ae82b03701efc3749aad78 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 25 May 2017 15:08:10 -0700 Subject: [PATCH] Set json.gz mimetype properly This sets the json.gz files' mimetype to application/json so that we can compress stackviz report data and still have it render properly in your browser. This will allow us to save space on the log server. Change-Id: I42d7d607e5864a81d52e72ff695331eb2d67d2c0 --- templates/logs.vhost.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/logs.vhost.erb b/templates/logs.vhost.erb index cae2469..c4e280c 100644 --- a/templates/logs.vhost.erb +++ b/templates/logs.vhost.erb @@ -46,6 +46,10 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %> ForceType image/svg+xml AddEncoding x-gzip gz + + ForceType application/json + AddEncoding x-gzip gz + # mod_mime_magic is sometimes passing css files as asm sources # e.g css files generated by coverage reports