Network · Made a little simpler
Cache-Control Header Builder
Build a Cache-Control header for an HTTP request or response. Choose storage, validation and freshness directives, then copy or download the header.
Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Cache-Control Header Builder: how to use it
- Choose Request or Response. For a response, select public or private if you need an explicit storage scope.
- Select the applicable directives and enter any durations as whole seconds. Leave an optional duration empty to omit it.
- Select Build header. Review the generated line and any notes, then copy the line or download a text file.
Limits and notes
Builds common Cache-Control directives without qualified field-name lists or custom extensions. Durations are whole seconds from 0 to 2,147,483,648. A browser, proxy or CDN applies the header in the context of the full exchange.
How your privacy works →Cache-Control Header Builder: common questions
What is the difference between no-cache and no-store?
Response no-cache requires validation before reuse. Response no-store directs caches to avoid storing the response.
How can a CDN and browser have different freshness lifetimes?
Set max-age for private caches and s-maxage to override that lifetime in shared caches such as CDNs.
Is an empty max-age field equivalent to zero?
An empty field omits max-age. Enter 0 to give the response zero seconds of explicit freshness.