service_workers_1 library Null safety

Service Workers Nightly

https://w3c.github.io/ServiceWorker/

Classes

Cache
The interface provides a persistent storage mechanism for [Request] / [Response] object pairs that are cached in long lived memory. How long a Cache lives is browser dependent, but a single origin's scripts can typically rely on the presence of a previously populated Cache. Note that the interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. [...]
CacheQueryOptions
CacheStorage
The interface represents the storage for Cache objects. [...]
Client
The interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get /WindowClient objects from methods such as Clients.matchAll() and Clients.get().
ClientQueryOptions
Clients
The interface provides access to Client objects. Access it via [self.clients] within a service worker.
ExtendableEvent
The interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. [...]
ExtendableEventInit
ExtendableMessageEvent
The interface of the Service Worker API represents the event object of a message event fired on a service worker (when a message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events. [...]
ExtendableMessageEventInit
FetchEvent
This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.
FetchEventInit
MultiCacheQueryOptions
The interface of the Service Worker API provides methods for managing the preloading of resources with a service worker.
RegistrationOptions
ServiceWorker
Secure contextThis feature is available only in secure contexts (HTTPS), in some or all supporting browsers. [...]
ServiceWorkerContainer
The interface of the Service Worker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. [...]
ServiceWorkerGlobalScope
The interface of the Service Worker API represents the global execution context of a service worker. [...]
ServiceWorkerRegistration
The interface of the Service Worker API represents the service worker registration. You register a service worker to control one or more pages that share the same origin. [...]
WindowClient
The interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.

Enums

ClientType
FrameType
ServiceWorkerState
ServiceWorkerUpdateViaCache