Type Alias SerializedRoute
catalogue?: true;
family?: Family;
freshness: Freshness;
mode?: Mode;
navigation?: "document";
offline: OfflineRule;
origin?: string;
pattern: string;
persist: boolean;
provisionable?: false;
query?: QuerySchema;
retention?: Retention;
scope: Scope;
strategy: Strategy;
sync: SyncRule;
type?: string;
version?: string;
}
Index
Properties
Optionalcatalogue
the route declares a catalogue, so the worker asks for one when a flush goes out on it
Optionalfamily
the held dataset row the page renders; the worker answers from it with no request
freshness
the staleness contract, with maxStale in seconds
Optionalmode
serve or shadow; absent means the server decides
Optionalnavigation
document when the page leaves this family's links and forms to the browser
offline
whether a snapshot may be shown while offline
Optionalorigin
the API origin a cross-origin data family answers for
pattern
the path pattern the route matches
persist
whether the artifact survives a worker restart
Optionalprovisionable
false for a family route with no load, which has no artifact to provision
Optionalquery
the query strings the worker answers from the stored collection of a public route
Optionalretention
a principal route's at-rest key; absent on a public route
scope
public or principal
strategy
how the route is answered locally
sync
when a soft route past its bound refreshes
Optionaltype
the content type a data route answers with, when it is not JSON
Optionalversion
what a manifest route's file is at now; the worker compares it with the stored copy
the part of a route the service worker needs; functions stay on the server