workbox.strategies. CacheFirst
An implementation of a cache-first request strategy.
A cache first strategy is useful for assets that have beeng revisioned, such as URLs like /styles/example.a8f5f1.css
, since they can be cached for long periods of time.
Constructor
CacheFirst
new CacheFirst(options)
Parameter |
|||||||
---|---|---|---|---|---|---|---|
options |
Object Values in
|
Method
handle
handle(input) returns Promise containing Response
This method will perform a request strategy and follows an API that will work with the Workbox Router.
Parameter |
|||||
---|---|---|---|---|---|
input |
Object Values in
|
- Returns
-
Promise containing Response