HSTS tells a browser to keep using HTTPS for a host for a specified time. Deploy it only after HTTPS is reliable.
The values
Strict-Transport-Security: max-age=31536000; includeSubDomains
max-age is a lifetime in seconds. The example lasts one year. includeSubDomains extends the rule to all subdomains, including services that may have separate owners. Omit it until every affected service supports HTTPS reliably.
What the browser does
Browsers learn HSTS from a valid HTTPS response and refresh its expiration when they receive it again. An HSTS header sent over plain HTTP is ignored. After learning the rule, the browser upgrades HTTP URLs for the host and does not offer the usual certificate-error bypass.
The first visit can still begin over HTTP if the browser has no stored policy. An HTTP-to-HTTPS redirect is useful but does not provide HSTS's remembered protection.
Preload is a separate commitment
The preload service currently recommends HSTS but does not recommend preloading as a general practice. Treat it as a deliberate operational choice.
Preload lists can supply protection before the first connection. Writing preload in the header does not itself put a domain on a browser list. Eligibility, submission, and removal follow the preload service's process; removal can take time to reach browsers.
Roll out deliberately
Begin with a short lifetime while checking certificates, redirects, subdomains, and recovery procedures. Extend it only when the deployment is stable. max-age=0 removes a learned policy when received over valid HTTPS, but cannot immediately undo separate subdomain policies or a browser's preload entry.
A header check can show the declared policy, but cannot certify every subdomain or browser preload state. See HTTPS and HSTS configuration.