workbox.strategies. NetworkFirst
An implementation of a network first request strategy.
By default, this strategy will cache responses with a 200 status code as well as opaque responses. Opaque responses are are cross-origin requests where the response doesn't support CORS.
Constructor
NetworkFirst
new NetworkFirst(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