property StaticPluginOptions.cacheControl

Cache-Control header configuration (default: function returning immutable for hashed assets, must-revalidate for others).

  • A string is used verbatim for all responses.
  • A function is called per request with the root-relative path.

Type

string | ((relativePath: string) => string)

Usage

import { type StaticPluginOptions } from "starters/full-stack-starter/src/index.ts";