use static gzip
This commit is contained in:
@@ -80,13 +80,20 @@ server {
|
||||
add_header Cache-Control "public, max-age=604800";
|
||||
}
|
||||
|
||||
location ~ "\.(css|js|png|svg|woff2)$" {
|
||||
location ~ "\.(css|js|svg)$" {
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
add_header Cache-Control "public, max-age=31536000";
|
||||
}
|
||||
|
||||
location ~ "\.(png|woff2)$" {
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
add_header Cache-Control "public, max-age=31536000";
|
||||
gzip_static off;
|
||||
}
|
||||
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
gzip_static on;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
Reference in New Issue
Block a user