puppeteer/test/assets/serviceworkers/fetch/sw.js
2020-05-07 12:54:55 +02:00

8 lines
179 B
JavaScript

self.addEventListener('fetch', (event) => {
event.respondWith(fetch(event.request));
});
self.addEventListener('activate', (event) => {
event.waitUntil(clients.claim());
});