1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [Cache-Control](<https://delaparra-services.nl/knowledge-hub/cache-control>)

  

Category: HTTP headers 

# Cache-Control

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is Cache-Control?

 

Cache-Control: The dominant caching directive. Controls how/whether responses are cached by browsers, CDNs, and proxies. ` Cache-Control ` tells browsers, CDNs and proxies whether and how long they may store a response. ` max-age=3600 ` means one hour. ` no-store ` means do not keep it at all. ` public ` and ` private ` decide whether shared caches may store it.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about Cache-Control

  

### How is Cache-Control used in practice?

 

For static assets with a version in the file name, such as ` app-3f9a2c.js `, use ` public, max-age=31536000, immutable `. The file never changes under that name, so browsers can keep it for a year.

    

### What should you keep in mind with Cache-Control?

 

HTML pages need shorter lifetimes, or ` no-cache ` with revalidation, so visitors see updates quickly. Pages that show personal data should be ` private ` or ` no-store `, so a shared cache never serves one user's account page to another. Getting these headers right is one of the cheapest performance improvements a site can make.

    

### What does an example of Cache-Control look like?

 

```
Cache-Control: public, max-age=31536000, immutable
```

 

## At a glance

   CategoryHTTP headers Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More HTTP headers terms

 

- [Access-Control-Allow-Origin](<https://delaparra-services.nl/knowledge-hub/access-control-allow-origin>) 
- [Access-Control-Max-Age](<https://delaparra-services.nl/knowledge-hub/access-control-max-age>) 
- [Authorization](<https://delaparra-services.nl/knowledge-hub/authorization>) 
- [Content-Length](<https://delaparra-services.nl/knowledge-hub/content-length>) 
- [Content-Security-Policy](<https://delaparra-services.nl/knowledge-hub/content-security-policy>) 
- [Content-Type](<https://delaparra-services.nl/knowledge-hub/content-type>)

 

[All terms starting with C](<https://delaparra-services.nl/knowledge-hub#letter-c>)

 

## Skills

 

- ### HTTP headers review

 

Use when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.

 [View skill](<https://delaparra-services.nl/skills/http-headers-review>) [Download zip](<https://delaparra-services.nl/skills/http-headers-review/download>) 
- ### Chrome DevTools Agent

 

'Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.'

 [View skill](<https://delaparra-services.nl/skills/chrome-devtools>) [Download zip](<https://delaparra-services.nl/skills/chrome-devtools/download>) 
- ### API Design Principles

 

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

 [View skill](<https://delaparra-services.nl/skills/api-design-principles>) [Download zip](<https://delaparra-services.nl/skills/api-design-principles/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/cache-control/skills.zip>)

 

## Manuals

 

- [HTTP headers: security, caching and CORS](<https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors>)

 

## Related services

 

- [Web design and development](<https://delaparra-services.nl/services#service-01>)

After our first meeting, we'll develop a custom solution for a fast, scalable application. 
- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/cache-control)
