From 645aba4d7ae5bd6c4b0c1418f62ffc04a89d164e Mon Sep 17 00:00:00 2001 From: ai-bot Date: Tue, 13 Oct 2026 17:01:40 +0000 Subject: [PATCH] static: cache the manifest and icon as part of the shell (section 31 point 6) --- static/sw.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/sw.js b/static/sw.js index e613d2e..aa4bd7d 100644 --- a/static/sw.js +++ b/static/sw.js @@ -10,7 +10,8 @@ const CACHE_NAME = "vardkey-shell-v1"; -// The shell: the pages and the assets they need. +// The shell: the pages, the assets they need, and the manifest and icon the +// browser reads when the app is installed. const SHELL = [ "/", "/setup", @@ -24,6 +25,8 @@ const SHELL = [ "/settings.js", "/health-check.js", "/history.js", + "/manifest.webmanifest", + "/icon.svg", ]; const SHELL_PATHS = new Set(SHELL);