Added manifest and favicon to precache

This commit is contained in:
Dmitriy Shishkov 2021-08-09 18:37:43 +03:00
parent 49ee864762
commit fae03cf5b6
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060

View File

@ -6,7 +6,13 @@ const getCache = () => caches.open(CACHE);
* Caches static files for application
*/
export const precache = async () =>
(await getCache()).addAll(["/", "/index.js", "/sw.js"]);
(await getCache()).addAll([
"/",
"/index.js",
"/sw.js",
"/manifest.json",
"/favicon.ico",
]);
/**
* Requests file from network or gets it from cache if offline