Search code examples
javascriptbrowser-historyhtml5-appcache

removing a URL from browser history through javascript


We are moving our website from http to https. When you go to the address bar and start typing "my_s..." the browser suggests "http://my_site.com". I've got it set up to redirect, but I'd rather not have the user go through that step. Is there any way to get the browser to forget "http://my_site.com" or get it to prefer "https://my_site.com"?

A complication is that I'm using appcache because we are supporting offline mode, and we have some automatic ajax calls that happen in the background, too.


Solution

  • This saved data is handled by the browser. You'll have to have the users delete the browser history, or set up redirects for http to https