Cache-Control Builder
Build HTTP Cache-Control headers visually and inspect TTL directives.
Environment Presets
Directives configuration
Never store response in any cache. Overrides other directives.
Must revalidate stale responses with the origin server before serving.
Allows responses to be stored by shared caches (CDNs, edge proxies).
Response is user-specific. Block shared caches/CDNs from storing.
Once stale, cache cannot serve response without server confirmation.
Like must-revalidate but strictly applies to shared/proxy caches.
Response body is immutable. Never validate with server within max-age.
Directives Count2 directives
Cache ScopePublic
Max-Age TTL1d
RevalidationNo
Live Preview
Full HTTP Header
Cache-Control: public, max-age=86400
Value Only
public, max-age=86400
Example HTTP Response
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.
Related Developer Utilities tools
RegExp Tester
Test regular expressions and inspect matches locally.
Regex Visualizer
Visual regex pattern diagram with live match highlighting and capture group annotations.
Subnet Calculator
Compute CIDR subnets, usable hosts, and network ranges.
Cron Parser
Translate cron syntax into plain English.
URL Parser
Break a URL into protocol, host, path, and query parts.
HTML Previewer
Paste HTML and see it rendered live in a safe, sandboxed preview.
HTTP Status Code Reference
Search and look up every HTTP status code and its meaning.
MIME Type Lookup
Find the MIME type for a file extension, or the extensions for a MIME type.