Answer the question
In order to leave comments, you need to log in
Why is nginx not serving static gz's?
nginx version: nginx/1.12.2
module --with-http_gzip_static_module included
In config:
gzip on;
gzip_disable 'msie6';
gzip_proxied any;
gzip_min_length 1000;
gzip_http_version 1.0;
gzip_buffers 8 64k;
gzip_comp_level 4;
gzip_vary on;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml font/otf font/tff;
location ~* \.(css|js)$ {
expires 30d;
access_log off;
log_not_found off;
gzip_static on;
add_header Cache-Control private;
add_header Vary Accept-Encoding;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question