What is Cache-Control?
DefinitionCache-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, 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, since the browser's HTTP cache and the service worker together determine which version of a file a visitor gets.
Topics: Hosting, CDNs and performance, Web standards and protocols
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/.
- HTML link
<a href="https://glossary.io/cache-control/">What is Cache-Control?</a>
Published