ecc3adc279
This patch: - introduces `test/assets/cached` folder and teaches server to cache all the assets from the folder - introduces `test/assets/serviceworkers` folder that stores all the service workers and makes them register with unique URL prefix - introduces `Response.fromCache()` and `Response.fromServiceWorker()` methods Fixes #1551.
4 lines
89 B
JavaScript
4 lines
89 B
JavaScript
self.addEventListener('fetch', event => {
|
|
event.respondWith(fetch(event.request));
|
|
});
|