The three HSTS figures to set before a customer's HTTPS go-live are
max-age,
includeSubDomains, and
preload.
Key takeaways
-
max-ageis the number of seconds browsers remember the policy; one year is the minimum accepted for preload, and OWASP's example uses two years written as 63072000 seconds -
includeSubDomainsis present or absent, and if present the policy applies to every subdomain of the domain -
preloadis a request to be listed in a browser's built-in list, but inclusion comes from a separate submission with its own review -
Fetch the header over HTTPS and compare the
max-age,includeSubDomains, andpreloadvalues against what was agreed -
Check the plain HTTP side returns a
301 Moved Permanentlyredirect to HTTPS before enabling HSTS
Why the header matters at go-live
You have a customer go-live on Thursday. Their DNS is pointed, their cert is installed, and someone asks whether HSTS is on. That is the moment you either confirm three figures or you hand them a header that browsers keep for the full max-age.
HSTS tells a browser to speak only HTTPS to that host from now on. Once a browser caches the policy, it will not fall back to plain HTTP for the length of the max-age. That is the whole point — and the whole risk.
The risk is avoidable if you check the header before the switch.
This post walks you through the three figures to confirm, what each one does, and how to talk a customer through the decision without guessing.
What the HSTS header actually says
A response carrying HSTS has a
Strict-Transport-Security
header with up to three directives:
max-age,
includeSubDomains, and
preload.
max-age
is a number of seconds. It tells the browser how long to remember the policy for that host. When the timer runs out, the browser stops enforcing HSTS unless a new response refreshes it. A fixed value for the age means each response pushes the expiration farther out, so a live site rarely lapses — but a site that stops sending the header will eventually fall back to plain HTTP behavior.
includeSubDomains
is a flag, not a number. If it is present, the policy applies to every subdomain of that domain too. That is a big scope change.
preload
is a request to be listed in a browser's built-in list of HTTPS-only domains. Submitting to that list is a separate, deliberate step with its own rules. It is not something a header alone accomplishes.
The point of checking all three before go-live is that a browser caches the policy for the full age you declare. Confirm the figures before the switch.
The three figures to set
Figure one: max-age
This is the number of seconds the browser should remember the policy. It is an easy figure to copy from a blog post without thought.
One year is the floor for anything involving preload. A shorter value works for plain HSTS but will not be accepted if your customer later decides to submit to the preload list.
OWASP's cheat sheet uses a long value — two years, written as 63072000 seconds — in its example for the issuing host. That is a useful reference point when a customer asks what "long" means in practice.
For a customer go-live, talk them through the trade-off plainly. A shorter age means the policy expires sooner if they stop sending the header, which is a safety valve if something goes wrong. A longer age means stronger protection and, if they pursue preload later, a head start toward the one-year minimum.
A useful habit: pick a value, write it in the runbook, and send the same value on every response. Because a fixed value refreshes the expiration each time, a consistent header keeps the policy alive without surprises.
Figure two: includeSubDomains
This is the second figure, and it is really a decision about scope. The directive is either present or absent, and its presence extends the whole policy to every subdomain.
Read the customer's estate before you agree to it. If any subdomain still accepts plain HTTP — a staging box, an old marketing microsite, an internal admin tool — then enabling the flag on the apex will make that subdomain unreachable for any browser that has already cached the policy. The browser will refuse to try HTTP, and if the subdomain does not answer on HTTPS, the user sees a failure.
Some customers are fully HTTPS on every subdomain and the flag is a straightforward yes. Others have a long tail of forgotten hosts and need the flag off for now, with a cleanup plan before they turn it on.
Ask one question in the onboarding call: does anything under this domain still serve plain HTTP? If the answer is yes or "I'd have to check," leave the flag off and schedule the follow-up.
Figure three: preload
Preload is the third figure, and it is the one with a gate. The header can request preload, but inclusion in the browser's list comes from a separate submission and a review with its own requirements.
The submission process asks that a site stay clean through its stages — if a problem appears, you fix it and then wait the full
max-age
of that stage before moving on. That waiting period is real calendar time, so a customer who wants preload needs to know the timeline before go-live, not after.
There is a genuine first-load problem that preload exists to solve: a browser visiting a domain for the first time has never seen the HSTS policy, so the very first request goes out over plain HTTP. The preload list addresses that by letting the browser know in advance that the domain is HTTPS-only.
Not every customer needs preload. If their site is already live and their certificate management is solid, plain HSTS with a reasonable age may be enough. If they are going live on a brand-new domain that nobody has visited yet, preload solves a problem they may not have hit yet — and the one-year minimum and staged wait make it a project, not a checkbox.
Your job at go-live is to confirm the figure the customer chose and make sure it matches what their header actually sends. If they said preload, confirm the age is at least one year and that someone owns the submission. If they did not say preload, confirm no
preload
directive is in the header, so nobody later assumes a submission was filed.
Here is how the three figures compare at a glance:
| Directive | What it controls | Key figure or rule |
|---|---|---|
max-age
|
How long browsers remember the policy, in seconds | Two years written as 63072000 seconds in the OWASP example; one year is the minimum accepted for preload |
includeSubDomains
|
Whether the policy covers every subdomain | Present or absent; if present, the policy applies to all subdomains of the host's domain |
preload
|
Whether to request inclusion in the browser's built-in list | Separate submission; fix any problems and wait the full max-age of the stage before moving on |
How to confirm the header before go-live
Now that you know the figures, here is a practical way to check them in the hour before the switch.
Fetch the header over HTTPS.
Ask for the site over HTTPS and read the
Strict-Transport-Security
response header. You are looking for the exact
max-age
value, the presence or absence of
includeSubDomains, and whether
preload
appears. If the header is missing entirely, the customer has no HSTS policy yet and you are starting from zero.
Compare against what the customer agreed to. Pull up the runbook or the ticket where the figures were decided. The header should match.
Check the plain HTTP behavior. Visit the site over plain HTTP. A host that accepts insecure HTTP requests should respond with a permanent redirect such as status code 301, pointing at the HTTPS URL. If the HTTP side still serves content, fix that before you enable HSTS, because once browsers cache the policy, that content becomes unreachable.
Confirm subdomain coverage matches reality.
If
includeSubDomains
is on, spot-check a few subdomains over HTTPS. If any of them only answers over HTTP, that is a stop. Resolve it or take the flag off before go-live.
Write the figures into the runbook.
The exact
max-age
value, whether subdomains are included, whether preload was requested, and the date the header was confirmed. If the customer's security review asks about these figures, see
HSTS in customer reviews. Next onboarding cycle you or a colleague will thank yourself.
Illustrative example: one HTTP subdomain
A customer runs the apex domain and 3 subdomains. One of those subdomains, a staging host, still answers over plain HTTP. If
includeSubDomains
were on today, browsers that had cached the policy would be unable to reach that host, so the team leaves the flag off, records a follow-up for the staging host, and turns the flag on once the host answers over HTTPS. Their
max-age
is 63072000 seconds, the same two-year value as the OWASP example, and the header is checked against the runbook before the switch.
What goes wrong when a figure is off
The failure modes are worth knowing because they shape how you talk to the customer.
An age that is too short for their goals is the quiet one. The header works, everything looks fine, and months later someone tries to submit for preload and finds out the minimum is one year. They now need to change the header and wait. Catching it at go-live is much simpler.
An age that is too long on a host they do not fully control is the loud one. If the customer cannot reliably serve HTTPS on some subdomain, a long policy with
includeSubDomains
on means users on cached browsers cannot reach it. Those users may report what looks like an outage.
A missing redirect on the HTTP side is the one that bites during go-live itself. Enabling HSTS tells browsers to use HTTPS only. If the HTTPS side is not fully working — a cert that covers the apex but not a www alias, a redirect loop — the site becomes hard to reach for anyone who has already received the header. Check the redirect before you send the policy.
Each of these is a figure or a behavior you can verify in advance. That is the whole argument for doing this check before the customer's switch, rather than after.
Your next step today:
open the customer's go-live ticket and write the agreed
max-age
value, the
includeSubDomains
choice and the preload decision into it, so the header check has something to compare against.
FAQs
What is the safest max-age for a first go-live?
There is no single right answer, because it depends on what the customer wants next. If they may pursue preload, they need at least one year. If they want a safety valve in case something goes wrong, a shorter value expires sooner if the header stops being sent. Pick one and agree it in writing.
Does includeSubDomains get cached the same way max-age does?
Yes. The whole policy — the age and the subdomain scope — is what the browser caches for the declared period. That is why the subdomain decision needs to be right before go-live.
Can a customer submit for preload the same day they enable HSTS?
They can start the process, but they should expect to wait. If a problem comes up during review, you fix it and then wait the full max-age of that stage before moving on. Since the minimum age for preload is one year, that waiting period is measured in months, not minutes. Plan it as a project with a date, not a launch-day task.
What should the HTTP side do while HSTS is being enabled?
It should redirect. Confirm this works before the header goes live, because after browsers cache the policy, they will not try plain HTTP at all.
Who at the customer's side should confirm these figures?
Whoever owns the edge or the web server config — often the infrastructure lead or the person who installed the certificate. Your customer success contact can relay the figures, but the person who will edit the header should be in the room when you agree on them. That prevents a ticket from being interpreted differently later. For the sign-in side of the same review, see customer sign-in security review.
What is the one thing to check if you only have five minutes?
Fetch the header over HTTPS and read the
max-age
value. Confirm it matches what was agreed and that it is at least one year if preload is on the table. Then visit the site over plain HTTP and make sure you get redirected rather than content. Those two checks cover the figure and the redirect before go-live.
Sources
Limits of this post
This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.