You ask in plain words
With whatever notes or documents you already have.
How long can a browser or CDN reuse this response, going by its headers?
Assess a cacheable GET in a shared cache. No request modifiers or stale extensions.
Your notes
Cache-Control: public, max-age=600, s-maxage=60 Calculated current age: 60 seconds
Your agent answers with a checked method
It runs 6 checks before it replies.
Your agentUsing this skill
The CDN’s copy is stale. Its shared-cache lifetime is 60 seconds and its current age is exactly 60 seconds, leaving no fresh time. Validate it or fetch a fresh response before ordinary reuse.
- no-cache permits storage with revalidation. Treating it as no-store misdiagnoses a normal conditional request.
- An unqualified private directive applies to shared storage. Do not apply it as a blanket ban on a browser cache.
- Using Expires when max-age is present gives the wrong lifetime. A recipient must ignore Expires whenever max-age is present.
- The Age header alone is not the current age. Add the delay in transit and the time the response has been stored.
- Treating an age equal to the lifetime as fresh. A response is fresh only while its lifetime is greater than its age.
- must-revalidate does not stop reuse while the response is fresh. It forbids serving it stale once the lifetime has passed, even when the origin cannot be reached.
Why that’s right. The shared limit overrides max-age. Equality is already stale.
Is it the right skill?
What it’s for, and when another skill or a person is the better choice.
Use it when
- Someone has response headers and asks how long a browser or CDN may reuse the response.
- A CDN or proxy serves stale content, or revalidates on every request, and the team wants to know what the headers allow.
- A developer is choosing between no-cache, no-store, max-age and s-maxage and wants to check what a given header will do.
Not the right skill when
- Vendor-specific CDN settings and targeted headers such as Surrogate-Control or CDN-Cache-Control, which can override the standard ones. Check that vendor's documentation.
- Responses with no explicit lifetime. RFC 9111 lets caches estimate a heuristic lifetime, often from Last-Modified, so the answer depends on that cache's own algorithm.
- Back and forward navigation in a browser, which can restore a page from the back/forward cache without revalidating.
The method it follows
7 steps, in order, every time.
- Confirm the basics: a GET (or other cacheable method) with a cacheable status, and whether the cache is private or shared. A shared cache must not store a response to a request carrying Authorization unless a directive such as public, s-maxage or must-revalidate allows it.
- Check storage first. no-store on the response means do-not-store. An unqualified private directive means a shared cache must not store the response; a browser cache may.
- Check mandatory validation. Unqualified no-cache on the response means every reuse must be validated with the origin, even while fresh. A no-cache request directive asks for validation before reuse. Either gives validate.
- Find the freshness lifetime, first match wins: s-maxage in a shared cache, then max-age, then Expires minus Date (or minus the receipt time if Date is absent). Ignore Expires when max-age is present, and in a shared cache when s-maxage is present. An invalid Expires such as 0 means already expired.
- Find the current age. Use the cache's calculated age if supplied. Otherwise apparent_age = max(0, response_time − Date); corrected_age_value = Age + (response_time − request_time), with Age 0 if absent; corrected_initial_age is the larger of the two; current_age = corrected_initial_age + (now − response_time).
- Compare: the response is fresh only while the lifetime is greater than the current age; equal or less is stale. Remaining time is lifetime minus age, never below zero.
- Resolve conflicts as RFC 9111 says: honour the most restrictive directive, and for duplicate lifetime values either use the first or treat the response as stale, reporting undetermined if those differ and the cache's behaviour is unknown. Without an explicit lifetime, report undetermined rather than guessing a heuristic. Name any request directive (max-age, max-stale, min-fresh) or extension such as stale-while-revalidate that was not applied.
What to have ready
If something’s missing, your agent asks before it starts.
- Cache type, response Cache-Control and either calculated current age or the request, response and assessment times with Date and Age evidence.
- A simple cacheable GET response and any request directives, status or validation conditions that alter reuse.

Is the cache a private browser cache or a shared cache such as a CDN or proxy? s-maxage and private apply differently to each.

Can you supply all the response headers (Cache-Control, Expires, Date, Age, Vary, ETag or Last-Modified) and the request headers, including any Cache-Control or Authorization?

Do you know the response's current age, or the request, response and assessment times? Freshness compares age with lifetime.

Is it a GET with a cacheable status such as 200? Other methods and statuses have their own rules.
Try it on your own AI
A new question with a known answer, so you can check your AI gets it right.
-
Copy the questionAssess a cacheable GET in a private browser cache. No request modifiers. Return only JSON following the skill’s test format. Cache-Control: private, no-cache, max-age=7200 Calculated current age: 2 seconds
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
The stored browser response needs validation before reuse regardless of its age.
{
"decision": "validate",
"lifetime_seconds": null,
"remaining_seconds": null
}
The check runs in your browser. Nothing you paste is sent anywhere.
-
Copy the questionAssess this ordinary cacheable GET. No request modifiers or stale allowances. All timestamps are on the same day in UTC. Return only JSON following the skill’s test format. Cache-Control: max-age=30 Request sent 12:00:00. Date 12:00:00. Response received 12:00:08. Age: 10. Assessment at 12:00:20.
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
The received age plus transit is 18 seconds, which exceeds the apparent age of 8. Adding 12 seconds of residence gives a current age of 30.
{
"decision": "stale",
"lifetime_seconds": 30,
"remaining_seconds": 0
}
The check runs in your browser. Nothing you paste is sent anywhere.
-
Copy the questionAssess a cacheable GET in a browser cache with no request restrictions. Return only JSON following the skill’s test format. Date: Tue, 10 Nov 2026 12:00:00 GMT Expires: Tue, 10 Nov 2026 12:02:00 GMT Cache-Control: public Calculated current age: 85 seconds.
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
No max-age applies. Expires is two minutes after Date, leaving 35 seconds of fresh time.
{
"decision": "fresh",
"lifetime_seconds": 120,
"remaining_seconds": 35
}
The check runs in your browser. Nothing you paste is sent anywhere.
Where the method comes from
Free to use and adapt with credit (CC BY 4.0).
Use this skill in Raq.com
Add it to your Skill Library and your agent applies it whenever a request matches. Edit it for your own business and keep every version.