4 Commits
pwa ... v0.2.0

Author SHA1 Message Date
fae03cf5b6 Added manifest and favicon to precache 2021-08-09 18:37:43 +03:00
49ee864762 Updated favicon 2021-08-09 18:37:10 +03:00
182b8907ee Merge pull request #2 from publite/pwa
Hot fixes
2021-08-09 17:50:46 +03:00
9fa8734c09 Merge pull request #1 from publite/pwa
Pwa
2021-08-09 16:24:57 +03:00
2 changed files with 7 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 66 KiB

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