static: cache the manifest and icon as part of the shell (section 31 point 6)
This commit is contained in:
1 parent
a21805b5aa
commit
645aba4d7a
1 file changed
+4
-1
+4
-1
@@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
const CACHE_NAME = "vardkey-shell-v1";
|
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 = [
|
const SHELL = [
|
||||||
"/",
|
"/",
|
||||||
"/setup",
|
"/setup",
|
||||||
@@ -24,6 +25,8 @@ const SHELL = [
|
|||||||
"/settings.js",
|
"/settings.js",
|
||||||
"/health-check.js",
|
"/health-check.js",
|
||||||
"/history.js",
|
"/history.js",
|
||||||
|
"/manifest.webmanifest",
|
||||||
|
"/icon.svg",
|
||||||
];
|
];
|
||||||
const SHELL_PATHS = new Set(SHELL);
|
const SHELL_PATHS = new Set(SHELL);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user