fix(docker): make sure the service worker and webmanifest are never cached
This commit is contained in:
parent
2fd2214a2e
commit
cabee68bbb
@ -28,6 +28,20 @@ server {
|
|||||||
add_header Cache-Control "public, max-age=0, s-maxage=0, must-revalidate" always;
|
add_header Cache-Control "public, max-age=0, s-maxage=0, must-revalidate" always;
|
||||||
try_files $uri /index.html =404;
|
try_files $uri /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Disable caching for sw
|
||||||
|
location = /sw.js {
|
||||||
|
autoindex off;
|
||||||
|
expires off;
|
||||||
|
add_header Cache-Control "public, max-age=0, s-maxage=0, must-revalidate" always;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Disable caching for webmanifest
|
||||||
|
location = /manifest.webmanifest {
|
||||||
|
autoindex off;
|
||||||
|
expires off;
|
||||||
|
add_header Cache-Control "public, max-age=0, s-maxage=0, must-revalidate" always;
|
||||||
|
}
|
||||||
|
|
||||||
# favicon.ico
|
# favicon.ico
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user