Skip to content

What do the hstspreload.org errors ('Max-age too low', 'No preload directive') mean?

Short answer

To join the browser HSTS preload list, your HTTPS response must send Strict-Transport-Security with max-age of at least 31536000, plus includeSubDomains and preload. HTTP must redirect to HTTPS on the same host first, and every subdomain must work over HTTPS. Fix the header, then resubmit.

Last updated 2026-11-25 · Reviewed by ProofForge

The exact error

text
Error: Max-age too low
The max-age must be at least 31536000 seconds (≈ 1 year), but the header currently only has max-age=300.
Error: No includeSubDomains directive
Error: No preload directive
Error: No HSTS header

Why it happens

  • max-age set to a low test value.
  • includeSubDomains or preload missing.
  • Header only on some responses, or added by a CDN on HTML but not redirects.
  • http://example.com redirects straight to https://www.example.com instead of https://example.com first.

How to fix it

  1. Ramp up max-age in stages (5 min → 1 week → 1 month), checking every subdomain works on HTTPS.
  2. Send the final header on all HTTPS responses of the apex domain:
  3. Redirect http → https on the same host, then to www if you use it.
  4. Resubmit at hstspreload.org.
http
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload

Check it's fixed

curl -sI https://example.com | grep -i strict-transport shows one header with all three directives. hstspreload.org shows no errors.

Check your live app

A free, read-only public-surface scan. It cannot diagnose private sessions or every cause described above.

Read-only. No writes or row contents.

FAQ

Is preloading reversible?

Removal is slow, since it ships with browser releases. Only preload when every subdomain will stay on HTTPS.

Do I need preload at all?

No. A normal HSTS header protects returning visitors. Preload also protects the first visit.

Two HSTS headers?

Send exactly one. Duplicates from app and CDN can confuse checkers.

Sources

Related

Read as Markdown · Scan methodology