summaryrefslogtreecommitdiff
path: root/nginx.conf
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-12-26 12:35:24 -0800
committerElizabeth Hunt <me@liz.coffee>2025-12-26 12:35:24 -0800
commitbc5da23f438ab0dd6dd17a5e7eef87e31c2eedd9 (patch)
tree66efd65e33c5ced63b97444db17d8c86f51b6d98 /nginx.conf
parentefe4572a5e5e9605478753337afc7b283a66c818 (diff)
downloadadelie-bc5da23f438ab0dd6dd17a5e7eef87e31c2eedd9.tar.gz
adelie-bc5da23f438ab0dd6dd17a5e7eef87e31c2eedd9.zip
Cache for 30m
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf16
1 files changed, 8 insertions, 8 deletions
diff --git a/nginx.conf b/nginx.conf
index 12fcf04..70946b7 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -50,24 +50,24 @@ http {
}
location ~* \.(css|js)$ {
- expires 1y;
- add_header Cache-Control "public, immutable, max-age=31536000" always;
+ expires 30m;
+ add_header Cache-Control "public, max-age=1800" always;
}
location ~* \.(woff|woff2|ttf|otf|eot)$ {
- expires 1y;
- add_header Cache-Control "public, immutable, max-age=31536000" always;
+ expires 30m;
+ add_header Cache-Control "public, max-age=1800" always;
add_header Access-Control-Allow-Origin "*" always;
}
location ~* \.(jpg|jpeg|png|gif|svg|ico|webp)$ {
- expires 30d;
- add_header Cache-Control "public, max-age=2592000" always;
+ expires 30m;
+ add_header Cache-Control "public, max-age=1800" always;
}
location / {
- expires 1h;
- add_header Cache-Control "public, max-age=3600" always;
+ expires 30m;
+ add_header Cache-Control "public, max-age=1800" always;
try_files $uri $uri/ =404;
}
}