SEO + AEO on AutopilotFrom the team at Stackmatix
The Growth Library

Check HSTS Host Coverage Before Releasing an HTTPS Migration

Map inherited HTTPS-only policy before extending HSTS. Use a filled host and expiry ledger to expose unsupported subdomains, independently stored policies and rollback constraints.

Before adding includeSubDomains to an HSTS policy, inventory the hostnames beneath that domain that people may visit over HTTP. A healthy HTTPS homepage does not establish that every documentation, support, legacy or delegated web host can serve verified HTTPS.

HSTS changes future browser requests. It is not a certificate, a redirect map or an indexing directive. The operational decision is whether the proposed policy scope matches the HTTPS capability of the hosts it will cover, including the ones a marketing-site migration does not normally inspect.

The certificate delivery check verifies secure delivery for an intended hostname. This guide builds the separate parent-and-child policy ledger needed before that hostname policy is inherited more broadly.

Read the scope and stored-state rules together

MDN’s HSTS reference explains that a browser records a policy received over HTTPS and upgrades later HTTP requests for covered hosts. A header sent over insecure HTTP is ignored. Missing the header on a later response does not erase the previously stored policy.

The includeSubDomains directive applies to descendants of the emitting host. A policy on secure.example applies to a child such as login.secure.example when that directive is present; it does not cover the parent example or a sibling outside that subtree. Treat the hostname hierarchy literally.

RFC 6797 specifies policy storage and expiration. MDN also describes independently stored parent and child policies. Removing a parent’s policy does not automatically remove an independent child policy already learned by the browser. Those are separate records, even when both once covered the child.

Fill a host-readiness ledger

Consider the following fictional company, with no preload entry assumed. The proposed example policy is emitted by example and includes its subdomains. These are constructed readiness states, not observed infrastructure or an instruction to change any live domain.

Web hostnameVerified HTTPS state in the fixtureCovered by proposed parent policy?Release decision
exampleValid certificate; intended homepageYes, emitting hostEligible under the stated fixture
docs.exampleValid certificate; intended public guidesYesEligible after ordinary public-path verification
legacy.exampleHTTP-only legacy web serviceYesBlocks the proposed wider scope until deliberately resolved
help.docs.exampleValid certificate; current help contentYesInclude its owner and delivery evidence
other.example.netSeparate hostname treeNoNot governed by this parent policy

One blocking descendant is enough to reject this particular scope extension. Do not infer that all names ending in the same displayed brand belong to the same policy subtree. Do not confuse a certificate wildcard’s matching rules with HSTS descendant coverage; they are different mechanisms.

The inventory concerns HTTP and HTTPS browser use of those hostnames. It is not a claim that HSTS changes SMTP or every other protocol operated beneath the domain. Coordinate delegated web hosts with their actual owners rather than applying a marketing-only checklist to infrastructure nobody reviewed.

Work through a populated expiry example

In a second fictional state ledger, the browser learns example’s max-age=86400 policy with includeSubDomains at November 21, 12:00 UTC. With no refresh, that stored parent policy expires November 22, 12:00 UTC. At the same initial instant, docs.example independently emits max-age=604800, giving its own policy a November 28, 12:00 UTC expiry.

Later eventParent stored policyIndependent docs policyConsequence for docs.example
No more policy responsesUntil November 22, 12:00 UTCUntil November 28, 12:00 UTCChild remains covered after parent expiry
Parent securely sends max-age=0 at November 21, 18:00 UTCDeleted when processedStill until its independent expiryParent deletion is not complete child rollback
Child also securely sends max-age=0Parent state unchanged by child responseDeleted when processedParent inheritance still applies if a live parent policy covers it

The arithmetic is one day for 86400 seconds and seven days for 604800 seconds. Each receipt of a fresh positive max-age policy recalculates that host’s expiry from the receipt time. A repeated response can therefore extend stored behavior; the table deliberately assumes no unrecorded refreshes.

Test an already-informed browser profile and a clean profile separately. A new profile that has not learned the parent policy does not inherit knowledge it never received. Preloaded policies add another state source and must be recorded independently rather than assumed absent in a real deployment.

Treat rollback as a delivery constraint

Sending max-age=0 works only when the browser receives the relevant response over verified HTTPS. A broken certificate cannot be repaired by placing a reset header on an HTTP page. The recovery plan must maintain a valid secure path for delivering the correction to affected clients.

Preload enrollment and removal follow a separate process and browser-distribution behavior. Do not add a preload token or submit a domain merely to complete this worksheet. Confirm the organization’s current preload state and approved operating process before making any plan that depends on it.

Keep ordinary HTTP-to-HTTPS redirects and search declarations consistent, but do not use them as substitutes for the stored-policy ledger. The domain-move handoff covers a different search administration decision. HSTS can affect a browser request even before an HTTP redirect would be sent.

Check explicit ports where the service supports them. MDN documents the special upgrade from port 80 to 443 and retention of other explicit ports. That does not promise that the destination port actually offers HTTPS. Include supported web-service ports in the owner’s readiness evidence.

Approve scope only after the hosts can serve it

Use the organization’s normal infrastructure review to decide any actual policy change. Keep the public publishing work separate from DNS edits, preload submissions or provider settings. This article supplies the decision artifact; it does not authorize operational changes.

Accept when the complete agreed hostname set has verified HTTPS, the inherited scope is understood and the stored-state recovery plan is realistic. Save actual observations and release details in the release record. The outcome is a coherent HTTPS-only boundary, not a ranking or indexing guarantee.

Sources

Matt Pru

Co-founder and CEO of Stackmatix. Writing about growth, customer acquisition, and the decisions behind useful marketing. Connect on LinkedIn.

Developed with AI assistance under Matt's editorial direction. Our Editorial Approach