From e70975e692e3fa67b8d732de3c0ae167d8a85d9e Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Wed, 22 Apr 2020 10:51:58 +0200 Subject: [PATCH] web: enable GZIP compression for more file types --- web/rootfs/defaults/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/rootfs/defaults/nginx.conf b/web/rootfs/defaults/nginx.conf index 5b1027a..3c7a171 100644 --- a/web/rootfs/defaults/nginx.conf +++ b/web/rootfs/defaults/nginx.conf @@ -41,7 +41,9 @@ http { ## gzip on; - gzip_disable "msie6"; + gzip_types text/plain text/css application/javascript application/json; + gzip_vary on; + gzip_min_length 860; # gzip_vary on; # gzip_proxied any;