My copy of Safari refuses to open my website, example.com
.
Every time I try and visit http://example.com
Safari (not the server!) redirects me to https://example.com
, and immediately tells me:
"Safari can't open the page "https://example.com" because Safari can't connect to the server "example.com".
It seems like my copy of Safari has 'cached' the HTTPS redirect or something.
Here is what I have tried:
But still every time I instantly get the message. It appears in a matter of milliseconds making me assume it's cached somewhere.
When trying on a Guest account, the problem goes away. However, both my Mac at home and at work are affected, presumably because iCloud is syncing some kind of Safari cache file.
This thread here seems to hint it is to do with HSTS (as @rluta has thought), or alternatively to do with Strict-Transport-Security
headers being set. I have confirmed and no Strict-Transport-Security
headers are being set when the webpage is accessed.
If at all possible I really don't want to have to "reset" my copy of Safari as I use it for everything day to day. Any ideas?
Over at the Apple Support Forum, the following was reported to resolve the issue:
Hope that helps.
Since your site used to support HTTPS, you probably have a cached HSTS entry that directs Safari to always use HTTPS to connect to your site.
You can purge your HSTS settings in Safari like this:
Have you tried to clear the history in Safari?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With