Cache-Control Generator
Cache-Control Header Generator
Choose a resource type and freshness. We build the exact Cache-Control header and ready-to-paste nginx and Apache config. Then verify it live with the cache checker.
Cache-Control header
nginx
Apache (.htaccess)
Frequently asked questions
What Cache-Control should static assets use?
public, max-age=31536000, immutable for hashed filenames. The generator builds the header plus nginx and Apache config.What is s-maxage?
A max-age just for shared caches and CDNs, overriding
max-age for them. The generator adds it for public responses.no-store vs no-cache?
no-store means never cache; no-cache means cache but revalidate every time. Use no-store only for sensitive responses.Related free tools
- All tools — browse every free hosts.click tool.
- Cache checker — verify the headers your server actually sends.
- Redirect generator — build 301 rules for nginx/Apache.