workbox-precaching. PrecacheRoute
A subclass of Route that takes a PrecacheController instance and uses it to match incoming requests and handle fetching responses from the precache.
Constructor
PrecacheRoute
new PrecacheRoute(precacheController, options)
Parameter |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
precacheController |
PrecacheController A |
||||||||||
options |
Optional Object Options to control how requests are matched against the list of precached URLs. Values in
|
- Extends
- module:workbox-routing.Route
Method
setCatchHandler
setCatchHandler(handler)
Parameter |
|
---|---|
handler |
A callback function that returns a Promise resolving to a Response |
- Inherited from
- module:workbox-routing.Route#setCatchHandler