Cache-Control builder

   

What is Cache-Control builder?

The Cache-Control header controls how long browsers and CDNs are allowed to reuse a cached response before checking back with the server — getting it wrong means either stale content sticking around too long, or unnecessary re-downloads.

How to use it

Choose public, private, or no-store, set a max-age, and optionally add s-maxage, no-cache, must-revalidate, or immutable — the header and a plain-language explanation update together.

Example

public, max-age=3600 -> cacheable by browsers and CDNs alike for one hour.