Browse Source

web: enable GZIP compression for more file types

Jakub Onderka 5 năm trước cách đây
mục cha
commit
e70975e692
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      web/rootfs/defaults/nginx.conf

+ 3 - 1
web/rootfs/defaults/nginx.conf

@@ -41,7 +41,9 @@ http {
 	##
 	##
 
 
 	gzip on;
 	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_vary on;
 	# gzip_proxied any;
 	# gzip_proxied any;