Compare commits
4 Commits
pwa
...
fae03cf5b6
Author | SHA1 | Date | |
---|---|---|---|
fae03cf5b6 | |||
49ee864762 | |||
182b8907ee | |||
9fa8734c09 |
Binary file not shown.
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 66 KiB |
@ -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
|
||||
|
Reference in New Issue
Block a user