What is the minimal service worker just for trigger the install button?
I don't want cacheing anything and the app can't works in offline mode, but i want allow users to create a shortcut on the desktop.
The "ultra" minimal service worker is
self.addEventListener('fetch', function() {
return;
});
No need to do something into fetch method
Seems like the minimal service worker would be this one
self.addEventListener('fetch', function(event) {
event.respondWith(fetch(event.request));
});
Taken from the Google Developers PWA documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With