From 3d255193671617c9289ac084b48cc5800bc3547a Mon Sep 17 00:00:00 2001 From: marwin Date: Fri, 29 May 2026 23:49:32 +0200 Subject: [PATCH] PWA: fix icon purpose entries + bump SW cache to v8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Chrome 98+ hat Probleme mit kombinierten purpose-Werten ("any maskable") auf einem einzelnen Icon-Eintrag. Separate Einträge für "any" und "maskable" sind zuverlässiger und entsprechen der Spec-Empfehlung. SW-Version auf v8 erhöht, um nach den JS-Änderungen einen sauberen Cache-Neustart zu erzwingen. Co-Authored-By: Claude Sonnet 4.6 --- static/js/sw.js | 2 +- static/manifest.json | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/static/js/sw.js b/static/js/sw.js index c3f67f3..05999e6 100644 --- a/static/js/sw.js +++ b/static/js/sw.js @@ -2,7 +2,7 @@ * diora service worker — caches the app shell for offline use. */ -const CACHE = 'diora-v7'; +const CACHE = 'diora-v8'; const PODCAST_CACHE = 'diora-podcast-v1'; const SHELL = [ '/static/css/app.css', diff --git a/static/manifest.json b/static/manifest.json index 696ba46..c23fdd2 100644 --- a/static/manifest.json +++ b/static/manifest.json @@ -13,13 +13,25 @@ "src": "/static/icon-192.png", "sizes": "192x192", "type": "image/png", - "purpose": "any maskable" + "purpose": "any" + }, + { + "src": "/static/icon-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" }, { "src": "/static/icon-512.png", "sizes": "512x512", "type": "image/png", - "purpose": "any maskable" + "purpose": "any" + }, + { + "src": "/static/icon-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" } ] }