소스 검색

Update nginx.conf

Add more gzip_types https://forum.vestacp.com/viewtopic.php?f=29&t=5100#p20750
Olexandr Loskutov 10 년 전
부모
커밋
7bc7c44931
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      install/ubuntu/13.10/nginx/nginx.conf

+ 1 - 2
install/ubuntu/13.10/nginx/nginx.conf

@@ -51,8 +51,7 @@ http {
     gzip_comp_level     9;
     gzip_min_length     512;
     gzip_buffers        8 64k;
-    gzip_types          text/plain text/css text/javascript
-                        application/x-javascript application/javascript;
+    gzip_types          text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml application/x-font-ttf font/opentype;
     gzip_proxied        any;