Skip to content

Commit

Permalink
config: ⚙ Change caching rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatOneCalculator authored Mar 24, 2022
1 parent 024feb7 commit fd3334e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example.nginx
Original file line number Diff line number Diff line change
Expand Up @@ -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/ {
Expand All @@ -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;
}

0 comments on commit fd3334e

Please sign in to comment.