Added manifest and favicon to precache
This commit is contained in:
parent
49ee864762
commit
fae03cf5b6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user