The parameter passed into the
FetchEventrepresents a fetch action that is dispatched on the
ServiceWorker. It contains information about the request and resulting response, and provides the
FetchEvent.respondWith()method, which allows us to provide an arbitrary response back to the controlled page.
new (type:String, eventInitDict:FetchEventInit)
Returns the id of the client that the current service worker is controlling.
Boolean that is
true if the event was dispatched with the user's intention for the page to reload, and
false otherwise. Typically, pressing the refresh button in a browser is a reload, while clicking a link and pressing the back button is not.
Request that triggered the event handler.
© 2005–2018 Haxe Foundation
Licensed under a MIT license.