Cache-Control headers
type: TechArticle
description: Cache-Control tells browsers and CDNs how long to keep a response. Use immutable + max-age=31536000 for fingerprinted assets and short or no-cache for HTML.
language: en
is part of: Web Specification Studio
author: Web Specification Studio
publisher: Web Specification Studio
license: https://creativecommons.org/licenses/by/4.0/
date modified: 2026-06-08T20:15:00.000Z
citation: RFC 9111 — HTTP Caching
  type: CreativeWork
  publisher: IETF
citation: RFC 5861 — HTTP Cache-Control Extensions for Stale Content
  type: CreativeWork
  publisher: IETF
citation: MDN — Cache-Control
  type: CreativeWork
  publisher: MDN
citation: MDN — HTTP caching
  type: CreativeWork
  publisher: MDN
citation: MDN — Vary
  type: CreativeWork
  publisher: MDN

Web Specification Studio
type: WebSite

Web Specification Studio
type: Organization

breadcrumb
type: BreadcrumbList
item list element: Home
  type: ListItem
  position: 1
  item: https://webspecification.com/
item list element: Spec
  type: ListItem
  position: 2
  item: https://webspecification.com/spec/
item list element: Performance
  type: ListItem
  position: 3
  item: https://webspecification.com/spec/performance/
item list element: Cache-Control headers
  type: ListItem
  position: 4
  item: https://webspecification.com/spec/performance/cache-control/