Classes

Methods

cacheFirst

static

cacheFirst(options)

Parameter

options

workbox.strategies.StrategyOptions

cacheOnly

static

cacheOnly(options)

Parameter

options

workbox.strategies.StrategyOptions

networkFirst

static

networkFirst(options)

Parameter

options

workbox.strategies.StrategyOptions

networkOnly

static

networkOnly(options)

Parameter

options

workbox.strategies.StrategyOptions

staleWhileRevalidate

static

staleWhileRevalidate(options)

Parameter

options

workbox.strategies.StrategyOptions

Abstract type

StrategyOptions

static

Object

Properties

Parameter

cacheName

String

Name of cache to use for caching (both lookup and updating).

cacheExpiration

Object

Defining this object will add a cache expiration plugins to this strategy.

Values in cacheExpiration have the following properties:

Parameter

maxEntries

Number

The maximum number of entries to store in a cache.

maxAgeSeconds

Number

The maximum lifetime of a request to stay in the cache before it's removed.