Skip to content

Type Alias: CacheDirective

ts
type CacheDirective = "no-store" | "immutable";

Defined in: packages/core/src/state-sync/types.ts:32

Binary cache directive for tool responses.

  • 'no-store' — Never reuse cached data. Always re-fetch. Use for volatile data: balances, inventory, patient records.

  • 'immutable' — Safe to cache forever. Data will never change. Use for reference data: countries, currencies, ICD-10 codes.

LLMs have seen Cache-Control: no-store millions of times in HTTP docs, API specs, and developer discussions. The association between no-store and "do not reuse this response" is deeply embedded in model weights.