Skip to content

Example showing how to abort fetch requests in a Service Worker

Notifications You must be signed in to change notification settings

anthumchris/serviceworker-fetch-abort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

serviceworker-fetch-abort

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

Usage

  1. python3 -m http.server
  2. http://localhost:8000/
  3. Open browser network inspector and console
  4. Click "Reload" before requests finish to make Service Worker abort the in-flight requests.

About

Example showing how to abort fetch requests in a Service Worker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published