From: Felix Ableitner Date: Wed, 3 Jun 2020 09:59:39 +0000 (+0200) Subject: Enable gzip compression for .svg X-Git-Url: http://these/git/%22https:/nerdica.net/%7B%24%7B%60data:application/static/git-favicon.png?a=commitdiff_plain;h=b2a7ce834dda1afb17746c92bec4720fbe50f590;p=lemmy.git Enable gzip compression for .svg --- 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