feat: move service-worker.js into its own file
parent
8437130ec2
commit
f4d76f1edd
@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
self.addEventListener('fetch', function (event) {
|
||||
event.respondWith(caches.match(event.request).then(function (response) {
|
||||
if (!response) {
|
||||
return fetch(event.request);
|
||||
}
|
||||
|
||||
return response;
|
||||
}));
|
||||
});
|
Loading…
Reference in New Issue