SEO & Performance

Cache-Control Builder

Start from the caching scenario that matches your response and get a ready-to-ship Cache-Control header with a short explanation. Fine-tune any directive under Advanced, and nothing leaves your browser.

Runs in your browser v1.0.0

1. Pick a scenario

start here

Choose the situation that matches your response. The header and its explanation update immediately — no account, no server.

2. Generated header

live


                    

What each directive does

    3. Advanced: fine-tune directives optional

    Adjust any directive to build a custom header. Changing a value clears the scenario selection so you always know when you have gone off the beaten path.

    Audience
    Storing
    Freshness lifetime

    Seconds or a duration like 1h, 7d, 1y. Blank omits the directive.

    Shared-cache lifetime. Overrides max-age for CDNs.

    Revalidation & extensions

    Serve a stale copy while refreshing in the background.

    Serve a stale copy if the origin errors out.

    How it works

    Pick a scenario to load a known-good starting point with a short explanation of why it fits. Every change is assembled locally with plain JavaScript into a single Cache-Control header, and each directive is explained in plain language. Duration fields accept raw seconds (3600) or units such as 1h, 7d and 1y. The built state is written to the URL fragment so a configuration can be bookmarked or shared, and no input is ever sent to a server.