A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/w3c/ServiceWorker/issues/592 below:

Cancelling HTTP fetch · Issue #592 · w3c/ServiceWorker · GitHub

When the user clicks the stop button while the page is loading a large file (example: a movie file) via the ServiceWorker, the ServiceWoer should stop the HTTP fetching to reduce the resource usage.

self.addEventListener('fetch', function(event) {
  event.respondWith(fetch(event.request));
});

Is this behavior specified in the Fetch spec or the ServiceWorker spec?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4