Cache-Control Builder
Build HTTP Cache-Control header directives interactively with live preview.
Directives
Live Preview
Full header line
Value only (for use in code)
Example response snippet
HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Cache-Control: public, max-age=86400
Cache-Control Builder — generate HTTP cache directives interactively
The Cache-Control HTTP header controls how browsers, CDNs, and proxy caches store your responses. The most common directives are max-age (how long in seconds a cached response is fresh), no-store (never cache at all — for sensitive data), and no-cache (always revalidate before serving). Use public to allow CDN caching and private for user-specific responses. The immutable directive is ideal for content-hashed static assets — it prevents browsers from issuing conditional revalidation requests during the max-age window, giving you the fastest possible cache performance.
Private & free — this tool runs entirely in your browser.