In short
HSTS (Strict-Transport-Security) tells browsers to always use HTTPS for your domain, skipping the insecure first request. PageSpeed checks for a long max-age, includeSubDomains, and preload. It's informational and doesn't change the score. Only add it once HTTPS works everywhere, starting with a short max-age and raising it.
Steps
Strict-Transport-Security: max-age=300
Then, after testing:
Strict-Transport-Security: max-age=31536000; includeSubDomains
Add preload and submit to the HSTS preload list only if you're sure every subdomain will stay on HTTPS; removal is slow.
Apache: Header always set Strict-Transport-Security "max-age=31536000". Cloudflare: SSL/TLS > Edge Certificates > HSTS. Shopify, Webflow and Wix: platform-managed.
The Semrush "HSTS not supported" article in this blog covers the same header.
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
HSTS Preload List, hstspreload.org

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



