---
title: "What is Cache-Control?"
term: "Cache-Control"
description: "Cache-Control is an HTTP header that tells browsers, CDNs and other caches whether a response can be stored, for how long, and when it must be checked with the server before it is reused."
url: "https://glossary.io/cache-control/"
published: "2026-11-22T20:32:29.988Z"
updated: "2026-11-22T20:32:29.988Z"
topics:
  - "Hosting, CDNs and performance"
  - "Web standards and protocols"
wikidata: "https://www.wikidata.org/wiki/Q2932502"
---

# What is Cache-Control?

**Definition:** Cache-Control is an HTTP header that tells browsers, CDNs and other caches whether a response can be stored, for how long, and when it must be checked with the server before it is reused.

A server sends Cache-Control with a response, using directives separated by commas. For example, max-age sets how many seconds a response stays fresh, s-maxage does the same for shared caches such as a [content delivery network](https://glossary.io/cdn/), no-cache requires revalidation before reuse, no-store forbids storing the response at all, and private limits caching to the visitor's own browser. Directives such as immutable and stale-while-revalidate fine-tune how caches behave.

Good caching makes sites faster and reduces server load. A common approach is to give versioned static files, such as CSS, JavaScript and images with a content hash in their file names, a long max-age with immutable, while giving HTML pages a short lifetime or requiring revalidation so updates appear quickly. Cache-Control also matters for [progressive web apps](https://glossary.io/pwa/), since the browser's HTTP cache and the service worker together determine which version of a file a visitor gets.

## Related terms

- [CDN](https://glossary.io/cdn/)
- [PWA](https://glossary.io/pwa/)

**Topics:** [Hosting, CDNs and performance](https://glossary.io/topics/hosting/), [Web standards and protocols](https://glossary.io/topics/web-standards/)

## Cite this definition

- APA: What is Cache-Control? (2026, November 22). Glossary. https://glossary.io/cache-control/
- MLA: “What Is Cache-Control?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/cache-control/.
- Chicago: “What Is Cache-Control?” Glossary. Coywolf. November 22, 2026. https://glossary.io/cache-control/.

Published November 22, 2026.
