mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
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:
parent
53f52cdddc
commit
c4023ea8f5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user