Ensure "public" is included in cache control headers

This commit is contained in:
Jake Howard 2023-11-23 13:33:19 +00:00
parent 6248a0665a
commit d4645d3812
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 2 additions and 3 deletions

View File

@ -27,13 +27,12 @@ server {
}
location /static {
expires 1y;
add_header Cache-Control "public, immutable";
add_header Cache-Control "public, immutable, max-age=31536000";
alias /app/collected-static;
}
location /media {
expires 1h;
add_header Cache-Control "public, immutable, max-age=3600";
alias /app/media;
}
}