FIX: serve statically compressed files when available

PERF: default gzip to level 5
This commit is contained in:
Sam 2014-07-08 16:45:18 +10:00
parent 059c0ff5e1
commit ebe3ee0b1c

View File

@ -28,6 +28,7 @@ server {
listen 80;
gzip on;
gzip_min_length 1000;
gzip_comp_level 5;
gzip_types application/json text/css application/x-javascript application/javascript;
server_name enter.your.web.hostname.here;
@ -61,6 +62,7 @@ server {
location ~ ^/assets/ {
expires 1y;
gzip_static on;
add_header ETag "";
add_header Cache-Control public;
break;