Options
All
  • Public
  • Public/Protected
  • All
Menu

A resolving object can also include the following cache related properties

Hierarchy

  • Cache

Index

Properties

Optional cacheMaxAge

cacheMaxAge: number

(in seconds) sets the Cache-Control header to max-age=$cacheMaxAge and overwrites the global cache time set in serveHTTP options.

Optional staleError

staleError: number

(in seconds) sets the Cache-Control header to stale-if-error=$staleError.

Optional staleRevalidate

staleRevalidate: number

(in seconds) sets the Cache-Control header to stale-while-revalidate=$staleRevalidate.

Generated using TypeDoc