FetchEvent() constructor creates a new
var myFetchEvent = new FetchEvent(type, init);
- The type of the Event.
- init Optional
- An options object containing any custom settings that you want to apply to the event object. Options are as follows:
Requestobject that would have triggered the event handler.
Clientthat the current service worker is controlling. This property is not yet implemented in Chrome.
Booleanthat 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
The definition of 'FetchEvent' in that specification.
|Working Draft||Initial definition.|
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
|Feature||Android webview||Chrome for Android||Edge mobile||Firefox for Android||Opera Android||iOS Safari||Samsung Internet|