FetchEvent() constructor creates a new
new FetchEvent(type, options)
A string with the name of the event. It is case-sensitive and browsers always set it to
An object that, in addition of the properties defined in
ExtendableEvent(), can have the following properties:
Requestobject that would have triggered the event handler.
Promisewhich returns a previously-loaded response to the client.
Clientthat the current service worker is controlling. It defaults to
A boolean value that signifies whether the page was reloaded or not when the event was dispatched.
trueif yes, and
falseif 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
A string which identifies the client which is being replaced by
resultingClientId. It defaults to
A string containing the new
clientIdif the client changes as a result of the page load. It defaults to
|Service Workers 1 |
BCD tables only load in the browser