Search Tools

HTTP Cache Freshness and Storage Eligibility

Check current age, explicit freshness lifetime, storage eligibility and reuse restrictions for a complete GET response

Use UTC throughout. Enter Date and Expires as HTTP-date values or ISO UTC timestamps including seconds. Unspecified expiry is not inferred.

Complete GET responses only. Other status codes are outside this calculator's scope.

For shared caches, directives such as public, s-maxage and must-revalidate affect storage eligibility.

Example: Sat, 14 Nov 2026 00:00:00 GMT. If omitted, response receipt time is used. ISO UTC format is also accepted.

Leave blank if the header is absent. This is distinguished from an explicit Age=0.

Example: 2026-11-14T00:00:25Z. Include seconds in the timestamp.

Example: 2026-11-14T00:00:30Z. May equal the request start time.

Example: 2026-11-14T00:00:40Z. Uses the entered value rather than reading the current time automatically.

Example: public, max-age=60, s-maxage=30. Unspecified freshness lifetimes are not inferred.

Example: Sat, 14 Nov 2026 00:01:00 GMT. Directives such as max-age take precedence.

Directives such as must-revalidate prevent stale reuse even when permission is otherwise assumed.

Enter only when max-stale with a seconds limit is selected. Equality with the limit is permitted.

Results

Results update automatically when the required values are entered.

Report an issue

Method, applicability and sources

Calculation method

apparent_age = max(0, response_time − Date); response_delay = response_time − request_time; corrected_age_value = Age + response_delay; corrected_initial_age = max(apparent_age, corrected_age_value); resident_time = now − response_time; current_age = corrected_initial_age + resident_time. Select freshness_lifetime in this order: s-maxage for shared caches, then max-age, then Expires − Date. A response is fresh only when freshness_lifetime > current_age. Response no-cache requires revalidation rather than prohibiting storage; no-store prohibits storage.

Worked example (hypothetical values)

Synthetic example: Date=1970-01-01T00:00:00Z, request_time=00:00:25Z, response_time=00:00:30Z, Age=20 s and now=00:00:40Z give apparent_age=30 s, corrected_age_value=25 s, corrected_initial_age=30 s, resident_time=10 s and current_age=40 s. With max-age=60 the response is fresh; with max-age=40 it is stale.

Applicability and limitations

Complete GET responses with status 200/301/302/404/500 considered in a single shared or private cache, using UTC timestamps precise to the second. Excludes 206/304, methods other than GET, partial content, Vary matching and cache keys, heuristic freshness, unknown extension directives, ETag/304 revalidation outcomes, client no-cache/max-age/min-fresh, and stale serving under RFC 5861.

Method and sources

Method: RFC 9111 (June 2022) §3/§3.5/§4.2/§5.2.2; RFC 9110 §15.1; checked 2026-11-14. Data recorded: 2026-11-14.