This test/exmple shows how to abort fetch requests in a Service Worker by passing a new groupId
in the URL. Useful for cancelling a large number of requests that are either queued in the browser or already in-flight
python3 -m http.server
- http://localhost:8000/
- Open browser network inspector and console
- Click "Reload" before requests finish to make Service Worker abort the in-flight requests.