Optional
maxSets the max-age
value of the cache-control
header sent to the browser. This controls the duration
that the response is held in the browser's http cache.
Optional
serviceSends an x-sw-cache-control
header with a value of max-age={serviceWorkerSeconds}
. This is not a standard
header that service workers understand by default. You'll need to implement logic to handle this in your service worker.
Generated using TypeDoc
Options for controlling caching behavior in the browser