fix(docker): make sure the service worker and webmanifest are never cached
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2023-02-22 12:18:46 +01:00
parent 2fd2214a2e
commit cabee68bbb
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 14 additions and 0 deletions

View File

@ -29,6 +29,20 @@ server {
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
location = /favicon.ico {
log_not_found off;