workbox-cacheable-response. CacheableResponsePlugin
A class implementing the cacheWillUpdate
lifecycle callback. This makes it
easier to add in cacheability checks to requests made via Workbox's built-in
strategies.
Constructor
CacheableResponsePlugin
new CacheableResponsePlugin(config)
To construct a new CacheableResponsePlugin instance you must provide at
least one of the config
properties.
If both statuses
and headers
are specified, then both conditions must
be met for the Response
to be considered cacheable.
Parameter |
|||||||
---|---|---|---|---|---|---|---|
config |
Object Values in
|