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
93 B
HTML
4 lines
93 B
HTML
<script>
|
|
window.registrationPromise = navigator.serviceWorker.register('sw.js');
|
|
</script>
|