HTTP Cache Freshness Simulator

Calculate current cache age and explicit freshness from supplied response headers and ordered UTC scenario times.

Inputs stay on your device No sign-up Free to use
How this works

The tool runs in this browser. Your file or text is not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Privacy details

Calculate cache scenario controls

Processed in your browser. Your inputs stay on this device.

Showing a generated example. Generate again for a new result.

How to use HTTP Cache Freshness Simulator

  1. Paste the observed response headers and enter request, response and reuse times in UTC.
  2. Select a shared or private cache and supply authorization and Vary assumptions.
  3. Read age, lifetime and storage/validation observations together before exporting.

Example: HTTP Cache Freshness Simulator

Calculate current cache age and explicit freshness from supplied response headers and ordered UTC scenario times.

You add
Observed response headers: "Date: Thu, 01 Oct 2026 10:00:00 GMT\nAge: 20\nCache-Control: public, max-age=120\nETag: \"sample\"" Request sent (UTC ISO time): "2026-10-01T10:00:00Z" Response received (UTC ISO time): "2026-10-01T10:00:02Z" Reuse time (UTC ISO time): "2026-10-01T10:01:00Z" Cache kind: "shared" Request includes Authorization: false Required Vary request fields match: "unknown"
You get
Current age: 80 seconds; freshness lifetime: 120 seconds.

Options

Cache kind
Shared caches use s-maxage when present; private caches use the applicable max-age or Expires evidence.
Vary matching
A fresh age does not establish request-field matching. Enter a match only when the required request evidence supports it.

Supported inputs and limits

Selected stored GET/200 response model; 20,000 header characters and bounded nonnegative integer age directives. UTC times must be ordered. No request directives, partial responses, validator success, live server check or stale-extension execution.

Where your input is processed

This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Freshness and permission to reuse are separate

The age calculation accounts for response delay and time spent in the cache. no-store, private, authorization, Vary and no-cache can restrict storage or reuse even while an explicit lifetime remains. Missing Date or freshness evidence stays unknown instead of receiving a guessed heuristic lifetime.

Questions about HTTP Cache Freshness Simulator

Does a fresh result guarantee reuse?

No. Review the separate storage, validation and Vary observations.

What if Date is unavailable?

Exact current age remains unknown in this selected model.

Are stale responses always forbidden?

This report does not model every stale extension or request permission; it identifies the stated restrictions.

Project manager: Tony Hines · Content updated 4 October 2026 · Report a problem