Options for controlling caching behavior in the browser

Hierarchy

  • BrowserCacheOptions

Properties

maxAgeSeconds?: string | number

Sets 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.

serviceWorkerSeconds?: string | number

Sends 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