Private, browser-local utility

Cache-Control Header Generator

Build a bounded Cache-Control response-header value from explicit caching choices.

Your input and result stay in this browser tab. Nothing is uploaded, fetched, logged, or stored.

Cache directives

Loading local tool…

Bounded cache policy

Supports max-age, s-maxage, no-cache, no-store, public, private, must-revalidate, proxy-revalidate, immutable, stale-while-revalidate, and stale-if-error. Numeric values use digits only from 0 through 315,360,000 seconds. Contradictory public/private and no-store/freshness combinations are rejected. Generated syntax must be tested in the real application and CDN; this page changes no server setting.