From 8d60c31aa7981432a3d905ca61182d6eb4bd9085 Mon Sep 17 00:00:00 2001 From: maziggy Date: Mon, 23 Mar 2026 15:32:06 +0100 Subject: [PATCH] Force-clear service worker and caches on SpoolBuddy kiosk load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just unregistering the SW wasn't enough — the old SW still controlled the page for that load. Now detects if any SW exists, nukes all SWs and caches, then reloads once to get a clean fetch from the server. Subsequent loads skip this since no SW is registered. --- frontend/index.html | 9 +++++++-- static/index.html | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 3ee2d0cab..0fea17051 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -32,9 +32,14 @@