]> Untitled Git - lemmy.git/commitdiff
Enable gzip compression for .svg
authorFelix Ableitner <me@nutomic.com>
Wed, 3 Jun 2020 09:59:39 +0000 (11:59 +0200)
committerFelix Ableitner <me@nutomic.com>
Wed, 3 Jun 2020 09:59:39 +0000 (11:59 +0200)
ansible/templates/nginx.conf

index 04e5a6436dc4b5ebc53a8dc47f53608051006c9f..a978c18999a755efd31663d56b59bf82b9ef1c66 100644 (file)
@@ -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