sw.js should be served with max-age=0 (#355)

This is a new requirement for Mastodon v1.5+; it's mentioned here: https://github.com/tootsuite/mastodon/releases/tag/v1.5.0rc1
This commit is contained in:
Nolan Lawson 2017-09-20 19:21:18 -07:00 committed by wxcafé
parent 53f52cdddc
commit c4023ea8f5
1 changed files with 5 additions and 0 deletions

View File

@ -240,6 +240,11 @@ server {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri @proxy;
}
location /sw.js {
add_header Cache-Control "public, max-age=0";
try_files $uri @proxy;
}
location @proxy {
proxy_set_header Host $host;