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/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%22https:/hacktivis.me/%24%7Bsrc%7D?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