I have a device with a web-based control panel, and accidentally set it to redirect all http pages to https, even though some don't work over https. Although I've since corrected this, Safari seems to have memorised the redirect and is refusing to forget it, instead constantly attempting to redirect me to the invalid https address.
I've already closed Safari, cleared ~/Library/Caches/com.apple.Safari/ and ~/Library/Cookies/HSTS.plist but it still seems to be remembering the redirect when I re-open it.
Where else could Safari be storing this information? I can access the correct page via Firefox or Chrome, so it may not be a system wide service, or if it is it's not one that the other browsers use.
Unfortunately because the web-panel is provided by a device I don't believe I can adjust headers or setup a redirect back to the correct URL, which seem to be options offered in other similar questions, so I really need to find out where this data is being stored so I can destroy it with fire.




~/Library/Safarifolder and seeing if that fixes the problem? If it does, you can experiment with items inside the folder until you find the culprit file. – interestinglythere Dec 31 '16 at 14:03~/Library/Cookies/HSTS.plistfile that's supposed to handle it, but it still happens in Safari. – Haravikk Jan 05 '17 at 10:22A similar thread on Google Chrome says: "It's unclear where Chrome stores the redirects."
Suspicion: Due to the possibly short redirection expiration date and/or performance requirements often solely in RAM, not persisted.
Also how long to cache HTTP redirects varies greatly across browsers
– porg Jan 27 '23 at 18:15