Weak Strict-Transport-Security max-age
Your HSTS header is present but expires soon, so the protection lapses for anyone who has not visited recently.
Why it matters
Your HSTS header is present but expires soon, so the protection lapses for anyone who has not visited recently. The value exists to be long: browsers only enforce HTTPS for as long as you told them to, and a short window means most returning visitors are unprotected on their first request.
How ShipReady detects it
Shared tables and rules for the two halves below. Split because this check was a hybrid: nine rules read the headers of a response we already have, which genuinely differ between routes, while missing-https-redirect probes the http:// equivalent of the origin — one fact, and running it per page would issue the same request ten times.
Detection is deterministic. ShipReady reports this only when it observes the condition directly, and prefers to miss a real problem over inventing one. Rule version 1.3.0.
How to fix it
This is the prompt ShipReady puts in your report — written to be pasted straight into Cursor, Claude Code, or whichever assistant built the app.
The Strict-Transport-Security header is present but its max-age ({observed}) is too short to provide meaningful protection. Set max-age to at least 15768000 (6 months), ideally 31536000 (1 year) with includeSubDomains.Frequently asked questions
- What does "Weak Strict-Transport-Security max-age" mean?
- Your HSTS header is present but expires soon, so the protection lapses for anyone who has not visited recently.
- How serious is it?
- ShipReady rates this low. Worth fixing. Small individually, and they accumulate.
- How do I fix it?
- Paste the fix prompt on this page into Cursor, Claude Code or your AI editor. It is the same prompt ShipReady puts in your report.
- Can I check my own site?
- Yes — ShipReady scans up to ten pages of any public site for free and reports this alongside every other check.
Related checks
Does your site have this?
ShipReady checks this and 73 other things across up to ten pages of your site. Free, no signup.
Scan my site