A RetroSearch Logo

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

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/FetchEvent below:

FetchEvent: FetchEvent() constructor - Web APIs

FetchEvent: FetchEvent() constructor

Baseline Widely available

Note: This feature is only available in Service Workers.

The FetchEvent() constructor creates a new FetchEvent object.

Syntax
new FetchEvent(type, options)
Parameters
type

A string with the name of the event. It is case-sensitive and browsers always set it to fetch.

options

An object that, in addition of the properties defined in ExtendableEvent(), can have the following properties:

request

The Request object that would have triggered the event handler.

preloadResponse

A Promise which returns a previously-loaded response to the client.

clientId Optional

The Client that the current service worker is controlling. It defaults to "".

isReload Deprecated Optional

A boolean value that signifies whether the page was reloaded or not when the event was dispatched. true if yes, and false if not. Typically, pressing the refresh button in a browser is a reload, while clicking a link and pressing the back button is not. If not present, it defaults to false.

replacesClientId Optional

A string which identifies the client which is being replaced by resultingClientId. It defaults to "".

resultingClientId Optional

A string containing the new clientId if the client changes as a result of the page load. It defaults to ""

handled

A pending promise that will be fulfilled once the event has been handled.

Return value

A new FetchEvent object.

Specifications Browser compatibility See also

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