From 05d809e3f63375348c923fe17a95acf2c40b4f10 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Tue, 22 Apr 2025 17:40:07 +0200 Subject: [PATCH 1/2] fix: disable cache for service-worker.js --- docker/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/nginx.conf b/docker/nginx.conf index d5c0efadb..7e33faca2 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -10,6 +10,11 @@ server { # serve compressed file if filename.gz exists gzip_static on; + location = /console/service-worker.js { + root /usr/share/nginx/html; + add_header Cache-Control "no-cache" always; + } + location /console { root /usr/share/nginx/html; index index.html index.htm; From e0557195032d0d406d18d9759d1e42d3bece81f7 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Tue, 22 Apr 2025 17:48:04 +0200 Subject: [PATCH 2/2] Update docker/nginx.conf Co-authored-by: Fabian Gruber <1951610+basert@users.noreply.github.com> --- docker/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index 7e33faca2..2f7987a9f 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -12,7 +12,7 @@ server { location = /console/service-worker.js { root /usr/share/nginx/html; - add_header Cache-Control "no-cache" always; + add_header Cache-Control "public, max-age=30" always; } location /console {