diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index 2defe2c8..734e0f64 100644 --- a/data/conf/nginx/site.conf +++ b/data/conf/nginx/site.conf @@ -42,13 +42,18 @@ server { gzip_disable "msie6"; gzip_vary on; - gzip_proxied any; + gzip_proxied off; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_min_length 256; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon; + location ~ ^/(fonts|js|css|img)/ { + expires max; + add_header Cache-Control public; + } + error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log; absolute_redirect off;