Skip to main content
Send Web Request

Cache-Control

Controls how responses are cached.

What it does

Cache-Control tells browsers and CDNs how long to cache a response, or whether to bypass cache. It appears in response headers from the server. For requests, you can use it to force a fresh fetch (e.g. no-cache).

Common directives

  • max-age=3600 — Cache for 1 hour
  • no-cache — Revalidate before using cache
  • no-store — Don't cache at all