FIX: serve statically compressed files when available
PERF: default gzip to level 5
This commit is contained in:
parent
059c0ff5e1
commit
ebe3ee0b1c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue