mirror of https://github.com/zer0bin-dev/zer0bin
config: ⚙ Change caching rules
This commit is contained in:
parent
024feb777a
commit
fd3334ea7c
|
@ -19,15 +19,16 @@ server {
|
||||||
|
|
||||||
rewrite ^/(?!.*api)(?!.*\.).*$ /index.html;
|
rewrite ^/(?!.*api)(?!.*\.).*$ /index.html;
|
||||||
|
|
||||||
expires 30d;
|
|
||||||
add_header Cache-Control "public, no-transform";
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
index index.html;
|
index index.html;
|
||||||
|
expires 30d;
|
||||||
|
add_header Cache-Control "public, no-transform";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.(css|js|html) {
|
location ~ \.(css|js|html) {
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
|
expires 30d;
|
||||||
|
add_header Cache-Control "public, no-transform";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /.well-known/ {
|
location ^~ /.well-known/ {
|
||||||
|
@ -47,7 +48,6 @@ server {
|
||||||
etag off;
|
etag off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# ssl_certificate /etc/letsencrypt/live/example.tld/fullchain.pem;
|
# ssl_certificate /etc/letsencrypt/live/example.tld/fullchain.pem;
|
||||||
# ssl_certificate_key /etc/letsencrypt/live/example.tld/privkey.pem;
|
# ssl_certificate_key /etc/letsencrypt/live/example.tld/privkey.pem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue