From b2a7ce834dda1afb17746c92bec4720fbe50f590 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 3 Jun 2020 11:59:39 +0200 Subject: [PATCH] Enable gzip compression for .svg --- ansible/templates/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/templates/nginx.conf b/ansible/templates/nginx.conf index 04e5a643..a978c189 100644 --- a/ansible/templates/nginx.conf +++ b/ansible/templates/nginx.conf @@ -36,7 +36,7 @@ server { # It might be nice to compress JSON, but leaving that out to protect against potential # compression+encryption information leak attacks like BREACH. gzip on; - gzip_types text/css application/javascript; + gzip_types text/css application/javascript image/svg+xml; gzip_vary on; # Only connect to this site via HTTPS for the two years -- 2.44.1