Add cache-first service worker
This commit is contained in:
parent
b2b5f82486
commit
ca222ff10d
20 changed files with 672 additions and 181 deletions
6
client/src/js/sw.js
Normal file
6
client/src/js/sw.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
workbox.skipWaiting();
|
||||
workbox.clientsClaim();
|
||||
|
||||
workbox.precaching.precacheAndRoute(self.__precacheManifest, {
|
||||
ignoreUrlParametersMatching: [/.*/]
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue