Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BrowserCacheOptions

Options for controlling caching behavior in the browser

Hierarchy

  • BrowserCacheOptions

Index

Properties

Optional maxAgeSeconds

maxAgeSeconds: undefined | 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.

Optional serviceWorkerSeconds

serviceWorkerSeconds: undefined | 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