FetchEvent
open class FetchEvent(val type: EventType<FetchEvent>, init: FetchEventInit) : ExtendableEvent(source)
This is the event type for fetch events dispatched on the ServiceWorkerGlobalScope.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The preloadResponse read-only property of the FetchEvent interface returns a Promise that resolves to the navigation preload Response if navigation preload was triggered, or undefined otherwise.
Link copied to clipboard
The resultingClientId read-only property of the FetchEvent interface is the Client.id of the Client that replaces the previous client during a page navigation.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The respondWith() method of FetchEvent prevents the browser's default fetch handling, and allows you to provide a promise for a Response yourself.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The ExtendableEvent.waitUntil() method tells the event dispatcher that work is ongoing.