We have fetch
handlers that caches our files i.e. workbox.routing.registerRoute
workbox-navigation-preload
should be workbox.navigationPreload
(have not used this though)
We have fetch
handlers that caches our files i.e. workbox.routing.registerRoute
workbox-navigation-preload
should be workbox.navigationPreload
(have not used this though)
@ vikr00001 why do you want to do it via Workbox specifically?!
Workbox, I believe, is just a wrapper around fetch and I am curious of your specific need for it.
Here is an example of plain JS service worker: Meteor-PWA-Explained/3_Service_workers.md at master · activitree/Meteor-PWA-Explained · GitHub
I haven’t studied what goes on in service workers yet-- I’m just trying to pick one and plug it in. So on that basis of missing knowledge ( ), I thought it would be a solid pick to go with one from Google. Once I learned from @rjdavid in his post above about ImportScripts()
, it was easy to get it working.
I’d be very interested in anything I can learn from you on this topic.
We also had our custom service worker before with all the required boilerplate code. After using workbox
The same reasons why we use any npm or meteor packages