Shopify Leaves HSTS on Your Domain for 90 Days
The most obscure consequence in this whole category, and the one most likely to make you think your new site is broken when it is not.
On this page
This is the most obscure thing in the whole website builder cluster, and it is the one most likely to cost you a weekend.
You close a Shopify store. You move your domain to a new host. You put up a replacement site. It works when you test it. Then a customer emails to say your website will not load, and another says it says something about a security certificate, and you check again on your own laptop and it is fine.
The cause was set months ago, by the store you just closed:
"remains in effect on your domain for 90 days"
What HSTS actually does
HTTP Strict Transport Security is a browser instruction. When a site sends it, the browser records a rule: for this domain, only ever use HTTPS, and keep doing that for the stated period — no exceptions, no fallback, no clickthrough.
It exists for excellent reasons. It prevents a class of attack where someone downgrades a secure connection to an insecure one. Shopify setting it on stores is a good practice, not a bad one.
The awkwardness is that the rule lives in each visitor's browser, not on the server. Nothing you do to the domain, the DNS or the hosting can retract it. Once a browser has been told, it stays told until the period expires.
Why it breaks the thing you move to
Normally, a site with imperfect HTTPS still works. The browser tries HTTPS, something is wrong with the certificate, and it either falls back to HTTP or shows a warning the visitor can click through.
Under HSTS, neither happens. There is no fallback and, on most browsers, no clickthrough. The connection simply fails.
So the failure modes that are ordinarily cosmetic become fatal:
- A new host whose certificate has not been issued yet. Most automatic certificate systems need the DNS pointed at them first, which produces a gap of minutes to hours where the domain resolves and HTTPS does not work. Under HSTS that gap is a hard outage.
- A certificate covering
wwwbut not the bare domain, or the reverse. Half your visitors fail. - A temporary holding page on plain HTTP. The obvious thing to put up during a migration is exactly the thing HSTS forbids.
- A redirect chain that passes through HTTP at any point.
Why it is so hard to diagnose
Because it fails selectively, and it fails for the wrong people.
A browser that never visited your Shopify store has no HSTS rule and is unaffected. A browser that visited last week has one and fails.
Which means: your new phone works, an incognito window on a machine that saw the store does not, a colleague who never shopped with you says it is fine, and your regular customers — the ones who visited most often and most recently — are the ones who cannot reach you.
Every instinct in that situation points at DNS. DNS is not the problem.
What to do
- Get valid HTTPS working on the new host before you repoint the domain. Many hosts allow a certificate to be provisioned by domain validation ahead of the DNS switch. Use it if available.
- Cover both the bare domain and
www, and any subdomain that was part of the store. - Redirect HTTP to HTTPS at the new host, so that any request arriving without it is handled properly rather than left to chance.
- Test from a browser that used the old store. This is the whole test. A fresh incognito window on a clean device proves nothing.
- If someone reports a failure, ask whether they were a regular visitor before. If yes, you have confirmed the cause rather than guessing at it.
- Do not put up a plain HTTP holding page on a domain that has carried a Shopify store in the last three months. It will be invisible to your best customers.
The general version of this lesson
Leaving a platform is not only about getting data out. Platforms configure things that outlive them, in places you do not control.
HSTS lives in browsers. DNS records live at registrars with their own caching. Email authentication records keep telling the world who may send as you. Search engines keep an index of what used to be there. Each of those has its own timescale and none of them end when the subscription does.
Which is why a migration should be planned backwards from "what still believes something about this domain", not forwards from "what is in my account".
Who actually owns your domain covers the ownership side of this, and the website exit checklist includes the HTTPS step explicitly for exactly this reason.
What we could not verify
- Whether the 90 days is counted from the store closing or from each browser's last visit, which changes who is affected and for how long.
- Whether Shopify includes the
preloaddirective, which would place the domain in browser-shipped lists and make the rule considerably more persistent than 90 days. - Whether the behaviour differs between a deactivated store and a store whose domain was simply disconnected while the store remained open.
Questions people ask
What is HSTS and why does it matter when leaving Shopify?
HSTS is a header that tells a browser to only ever reach a domain over HTTPS, and to remember that instruction for a stated period. Shopify documents that it "remains in effect on your domain for 90 days" after a store closes - so browsers that visited your store keep refusing plain HTTP for your domain even after the store is gone.
Why will my new site not load after moving away from Shopify?
If the new host does not serve valid HTTPS, visitors whose browsers remember the HSTS instruction get a hard failure rather than a fallback to HTTP. It looks like the site is down or DNS is broken. It is neither - the browser is enforcing a rule set while the Shopify store was live.
How do I fix an HSTS problem after leaving Shopify?
Ensure HTTPS works properly on the new host before or at the moment you repoint the domain: a valid certificate covering both the bare domain and www, and a working redirect from HTTP to HTTPS. There is no way to retract the instruction from browsers that already have it, so the answer is to satisfy it rather than remove it.
Does it affect everyone or only some visitors?
Only browsers that received the header while the store was live, which means your regular customers are the ones most likely to be affected and a brand-new visitor may be fine. That asymmetry is why this is so confusing to diagnose - the site works for you on a new device and fails for the people who matter.
Is 90 days from the store closing or from the last visit?
Shopify's wording is that it remains in effect on your domain for 90 days. Technically an HSTS policy duration is counted by each browser from when it last received the header, which would mean a regular customer's clock starts later than a lapsed one's. We could not confirm from the documentation which reading applies, so plan for the longer one.
Where this information comes from
Product details change often. Each item below links to the primary source we checked, so you can confirm anything that matters to your decision.
Spotted something out of date or incorrect? Tell us and we will fix it.