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 {
|
location /static {
|
||||||
expires 1y;
|
add_header Cache-Control "public, immutable, max-age=31536000";
|
||||||
add_header Cache-Control "public, immutable";
|
|
||||||
alias /app/collected-static;
|
alias /app/collected-static;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /media {
|
location /media {
|
||||||
expires 1h;
|
add_header Cache-Control "public, immutable, max-age=3600";
|
||||||
alias /app/media;
|
alias /app/media;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue