Loading...
Strict-Transport-Security: max-age=3600Strict-Transport-Security: max-age=31536000; includeSubDomainsA one-year max-age keeps browsers on HTTPS between visits, while one hour leaves frequent gaps for downgrade attacks.
includeSubDomains and breaking an internal subdomain that has no HTTPS.Strict-Transport-Security header is sent only over HTTPS responses.max-age is long in production, and a short value is used only while testing.includeSubDomains and 'preload' are set only when every subdomain works over HTTPS.Serve the header with a max-age of at least one year, includeSubDomains and 'preload', redirect HTTP to HTTPS, then submit the domain to the preload list.
Send max-age=0 over HTTPS to clear it in browsers that visit again. Removal from the preload list is slow, so preload only when you are sure.
No. The redirect is still needed for the first visit, and HSTS then makes the browser skip plain HTTP on later visits.