RouterSourceKind Enum

The source of the response of a RouterRule (https://w3c.github.io/ServiceWorker/#enumdef-routersourceenum).

public enum RouterSourceKind

Fields

NameValueDescription
Cache0The response stored for the request in the caches of the origin, or the network when there is none.
FetchEvent1The fetch event of the service worker.
Network2The network: the fetch event is not dispatched.
RaceNetworkAndFetchHandler3The first of the network (a response whose status is an ok status) and the fetch event that gives a response (for the GET requests).