HSTS max-age Too Short or Missing: What It Means
HSTS (HTTP Strict Transport Security) is a response header that tells browsers to use only HTTPS for your site for a set period. If it is missing, or the period it asks browsers to remember (max-age) is short, a returning visitor who types your address or follows an old http link can still send that first request over plain HTTP. On a public Wi-Fi network that request can be intercepted or downgraded.
What it is
Your site doesn't tell browsers to remember 'always use HTTPS' for long enough.
Why it matters
A short or absent HSTS window leaves visitors open to being silently downgraded to HTTP on later visits.
Meowdit rates this high risk.
How to tell if your site has it
- Open your browser's developer tools, go to the Network tab, select the request for the page itself and read the response headers. If there is no Strict-Transport-Security line, HSTS is not set.
- If the line is there, look at its max-age number. It is measured in seconds; if it works out to a few days or hours, the window is too short to protect returning visitors.
- HSTS only counts when it is sent over HTTPS. Browsers ignore it on a plain HTTP response.
- Check subdomains separately: protection on your main domain does not automatically cover www or other subdomains, which depends on a separate option.
Fix direction
Send the HSTS header on your site's HTTPS responses with a long enough remember period that returning visitors always go straight to HTTPS. Before you lengthen it, make sure every part of the site, including subdomains, works over HTTPS, because browsers will refuse plain HTTP for the whole period once it applies.
A scan gives you the steps specific to your site, plus a fix prompt you can paste into an AI tool. See what a report looks like: View the public example report
FAQ
- What do includeSubDomains and preload mean?
- includeSubDomains applies the rule to every subdomain as well. Preload means asking for your domain to be built into browsers' HSTS list, so even a first visit goes straight to HTTPS. Both widen the effect, and whether they suit you depends on whether all your subdomains already work over HTTPS.
- Can I undo HSTS after turning it on?
- Yes, but not instantly. Browsers that have already stored the rule keep it until the period runs out, so the longer the period, the longer a rollback takes. That is why HTTPS should be stable before the period is lengthened.
- I already redirect HTTP to HTTPS. Do I still need HSTS?
- Yes. A redirect only happens after the browser has sent an HTTP request, and that unencrypted request is exactly where an attacker can step in. HSTS stops the browser sending it at all, so the two work together.
References
Related checks
Related guides
All checks · View the public example report
This page was written and checked by AI and has not been reviewed by a person, so please verify before applying; see About Meowdit. Last updated: 2026-11-22