Ensure "public" is included in cache control headers
This commit is contained in:
parent
6248a0665a
commit
d4645d3812
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue