From 2096fc5d11e1fc63e1dcd9910160829cad4337dc Mon Sep 17 00:00:00 2001 From: nessi Date: Mon, 17 Aug 2026 19:36:04 +0200 Subject: [PATCH] chore: bump service worker cache version to v5 and add manifest cache-busting parameter Increment CACHE_NAME from media-max-shell-v4 to v5 in sw.js. Update service worker registration query parameter from v=4 to v=5 in index.html. Add v=5 cache-busting parameter to manifest.json link tag. Remove duplicate service worker registration script block from template footer --- static/sw.js | 2 +- templates/index.html | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/static/sw.js b/static/sw.js index 48e8d32..ff6a205 100644 --- a/static/sw.js +++ b/static/sw.js @@ -1,4 +1,4 @@ -const CACHE_NAME = 'media-max-shell-v4'; +const CACHE_NAME = 'media-max-shell-v5'; const SHELL = ['/static/media-mark.svg', '/static/media-mark-192.svg', '/static/media-mark-512.svg', '/static/manifest.json']; self.addEventListener('install', event => { diff --git a/templates/index.html b/templates/index.html index 6339221..c486d6d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded',()=>{const grid=document.querySelec @@ -35,7 +35,7 @@ if ('serviceWorker' in navigator) { -Media Max +Media Max