max-age
How long, in seconds, the browser remembers the policy.
Overview
How long, in seconds, the browser remembers the policy.
Compression, caching, CORS, cookies and security policy headers.
This term appears across 7 tools in the HTTP / Web category. Use the examples and checks below to see how it behaves in practice.
Where you see it
max-age sets freshness in seconds for browsers; s-maxage overrides it for shared caches such as a CDN.
Cache Control CheckerComparing Age with max-age shows whether it is still fresh at the edge.
Cache Control CheckerThe header is Strict-Transport-Security: max-age=31536000; includeSubDomains; preload.
HSTS CheckerTo join, a domain needs a long max-age, includeSubDomains and the preload directive.
HSTS Preload StatusIt contains version: STSv1, mode, max_age and one or more mx entries.
MTA-STS / TLSRPT Checker
Examples
Try a live check with https://example.com using Cache Control Checker.
Cache Control CheckerHow to use it
- Open Cache Control Checker and run it against a real target such as https://example.com.
- Compare the raw answer with the definition and the example above; do not rely on the summary alone.
- If the answer differs, use the troubleshooting checks below and confirm with a second source before changing anything.
What to watch for
- max-age can be cached for its TTL, so a change may look missing until caches expire; compare the record's TTL with the age of the answer.
- Cookie scope is set by Domain, Path, SameSite and Secure; a broad Domain makes max-age first-party across every subdomain.
- A result applies only to the exact target, configuration and scope you tested; check sibling names, hosts or paths separately.
Why it matters
Compression, caching, CORS, cookies and security policy headers.
7 tools use this term
HTTP / WebWhere to check it
Use MTA-STS / TLSRPT Checker, HSTS Preload Status, HSTS Checker, Security Headers Checker, Cache Control Checker, CORS Checker, Cookie Checker to inspect it directly. Each tool shows the raw result and its limitations.
HTTP / WebCommon problems and fixes
Why do users see an old page after a deploy?
HTML is being cached. Use a short max-age or no-cache with revalidation for documents, and long immutable caching only for hashed asset filenames.
From Cache Control CheckerWhy does the CDN ignore my max-age?
A CDN may use s-maxage, its own configuration, or strip headers. Check the Age and the CDN's cache rules rather than assuming the origin's header wins.
From Cache Control CheckerWhy did a subdomain break after enabling HSTS?
includeSubDomains applied the policy to names without valid certificates or HTTPS. Either fix those hosts or remove the directive and wait for max-age to expire.
From HSTS CheckerBlocked or filtered: compare a public resolver and check firewall, proxy and content-filter rules.
An old value persists: wait for the TTL to expire, then query the authoritative server directly.
Used in these tools
7 toolsStandards and references
Frequently asked questions
What is max-age?+
How long, in seconds, the browser remembers the policy.
How do I check max-age?+
Use MTA-STS / TLSRPT Checker, HSTS Preload Status, HSTS Checker, Security Headers Checker, Cache Control Checker, CORS Checker, Cookie Checker to inspect it directly. Each tool shows the raw result and its limitations.
Why does max-age matter?+
It affects how HTTP / Web results are read. Compression, caching, CORS, cookies and security policy headers.
What is a common mistake?+
Caching without Vary. A shared cache can serve the wrong language or encoding for max-age.
How this page is written
Definitions are compiled from the 244 tool pages, checked against the standards below, and reviewed by Steve. Each term links to the tools where it is used.


