config: ⚙ Change caching rules

This commit is contained in:
Kainoa Kanter 2022-03-23 18:36:56 -07:00 committed by GitHub
parent 024feb777a
commit fd3334ea7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -19,15 +19,16 @@ server {
rewrite ^/(?!.*api)(?!.*\.).*$ /index.html;
expires 30d;
add_header Cache-Control "public, no-transform";
location / {
index index.html;
expires 30d;
add_header Cache-Control "public, no-transform";
}
location ~ \.(css|js|html) {
try_files $uri =404;
expires 30d;
add_header Cache-Control "public, no-transform";
}
location ^~ /.well-known/ {
@ -47,7 +48,6 @@ server {
etag off;
}
# ssl_certificate /etc/letsencrypt/live/example.tld/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/example.tld/privkey.pem;
}