瀏覽代碼

web: enable GZIP compression for more file types

Jakub Onderka 5 年之前
父節點
當前提交
e70975e692
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      web/rootfs/defaults/nginx.conf

+ 3 - 1
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;