Cache-Control

Cache-Control header directives with max-age, stale-while-revalidate, and immutable.

Report an issue
api

Install

$ npx shadcn@latest add @open-types/cache-control

Source

export interface CacheControlDirectives {
  public?: boolean;
  private?: boolean;
  no_cache?: boolean;
  no_store?: boolean;
  max_age?: number;
  s_maxage?: number;
  must_revalidate?: boolean;
  proxy_revalidate?: boolean;
  immutable?: boolean;
  stale_while_revalidate?: number;
  stale_if_error?: number;
}
export interface CacheControlDirectives {
  public?: boolean;
  private?: boolean;
  no_cache?: boolean;
  no_store?: boolean;
  max_age?: number;
  s_maxage?: number;
  must_revalidate?: boolean;
  proxy_revalidate?: boolean;
  immutable?: boolean;
  stale_while_revalidate?: number;
  stale_if_error?: number;
}