Tested tool guide
Tested browser tools
Checked August 15, 2026
What Cache-Control Header Generator does, with a checked example
This tool assembles a Cache-Control header value from separate controls: a max-age field for browser and shared-cache freshness in seconds, an s-maxage field aimed specifically at CDNs and reverse proxies, and toggles for no-cache, no-store, public, private, and immutable. Selected directives are joined into one comma-separated value in a consistent, readable order; Cache-Control directives are parsed as an unordered list, so caches interpret the header the same way regardless of the order they appear in. The detail people get wrong most often: no-cache does not block caching. It lets a cache store the response but forces revalidation before every reuse, while no-store is the only directive that actually prevents storage.
Worked example
A concrete input and expected output from the current implementation.
Input
max-age=86400, public checked, immutable checked
->
Expected output
Cache-Control: public, max-age=86400, immutable
max-age=86400 lets any cache reuse the response for 24 hours, public additionally makes the response shareable even on a request that carried an Authorization header (without public, such a response generally can't be stored by shared caches, even with max-age present), and immutable tells supporting browsers to skip revalidation on an ordinary reload while the cached response is still fresh.