Chrome Dev Summit is back! Visit goo.gle/cds2021 to secure your spot in workshops, office hours and learning lounges!

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.