diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-12-26 12:35:24 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-12-26 12:35:24 -0800 |
| commit | bc5da23f438ab0dd6dd17a5e7eef87e31c2eedd9 (patch) | |
| tree | 66efd65e33c5ced63b97444db17d8c86f51b6d98 /nginx.conf | |
| parent | efe4572a5e5e9605478753337afc7b283a66c818 (diff) | |
| download | adelie-bc5da23f438ab0dd6dd17a5e7eef87e31c2eedd9.tar.gz adelie-bc5da23f438ab0dd6dd17a5e7eef87e31c2eedd9.zip | |
Cache for 30m
Diffstat (limited to 'nginx.conf')
| -rw-r--r-- | nginx.conf | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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; } } |
