StoredServiceWorkerRouterRule Class
A rule of the static routing API (https://w3c.github.io/ServiceWorker/#dictdef-routerrule) of a StoredServiceWorker.
public sealed class StoredServiceWorkerRouterRuleConstructors
| Name | Description |
|---|---|
| StoredServiceWorkerRouterRule() |
StoredServiceWorkerRouterRule()
- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public StoredServiceWorkerRouterRule()No documentation is available.
Properties
| Name | Description |
|---|---|
| CacheName | Gets the name of the cache of a cache source, or null to look up every cache. |
| Condition | Gets the condition of the requests handled by the rule. |
| Source | Gets the source: network, cache, fetch-event or race-network-and-fetch-handler. |
CacheName
ServiceWorkerBackend.csCondition
ServiceWorkerBackend.csGets the condition of the requests handled by the rule.
public required StoredServiceWorkerRouterCondition Condition { get; init; }