It's a wrap for Chrome Dev Summit 2020! Watch all the sessions at goo.gle/cds20-sessions now!

Class: PrecacheFallbackPlugin

Constructor

PrecacheFallbackPlugin

new PrecacheFallbackPlugin(config)

Constructs a new PrecacheFallbackPlugin with the associated fallbackURL.

Parameter

config

Object

Values in config have the following properties:

Parameter

fallbackURL

string

A precached URL to use as the fallback if the associated strategy can't generate a response.

precacheController

Optional

PrecacheController

An optional PrecacheController instance. If not provided, the default PrecacheController will be used.