4Internet / web http

HTTP Cache Age and Freshness Simulator

Explain cache age from supplied timestamps and directives with a visible freshness budget.

Local calculation · no network request

Explore your inputs

Sample values are prefilled. Review or replace them, then calculate. Input is processed by this server for this request only.

Paste only the header value. This models explicit freshness, not every storage rule.

Enter the value for this calculation.

Enter the value for this calculation.

Enter the value for this calculation.

Enter the value for this calculation.

Enter the value for this calculation.

Enter the value for this calculation.

Used only when no applicable max-age or s-maxage is supplied.

A practical guide

How to use HTTP Cache Age and Freshness Simulator

Explain cache age from supplied timestamps and directives with a visible freshness budget.

  1. Translate the request, receipt, origin Date and evaluation time to Unix seconds.
  2. Enter the Age header and cache directives, then choose private or shared caching.
  3. Follow apparent age, response delay and residence time into the displayed current age. Compare it with the selected lifetime.

Worked example

Illustrative input and expected interpretation. This example is not a live measurement.

Input

Request 1000; response 1001; Date 1000; Age 0; now 1061; max-age=120

What to expect

Current age 61 seconds, leaving 59 seconds of explicit freshness.

What to watch for

  • Freshness alone does not establish permission to store or reuse a response. Status, Vary and authorization are not evaluated.
  • Duplicate directives are rejected. Unknown extensions are not simulated; no-cache and no-store have different meanings.

Your input: submitted to this server for processing. This tool does not send it to an AI provider. Your input is processed for this request. Temporary processing files are removed afterward. Avoid pasting secrets or personal data.

References