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

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;
}
}