1
1
I am building a website, and I was debugging the code which redirects between HTTP and HTTPS versions of a page. I found that the HTTP page was always redirecting to the HTTPS page, even when I told it not to. After much tearing out of hair, I found that no redirect was actually being issued. Instead, Firefox had cached the redirect, and was redirecting itself.
This is in spite of the fact that all redirects were temporary 302 Found
. At no point was a permanent redirect ever issued. Clearing the Firefox cache didn't help either. Opera and the Web-Sniffer show no redirects, while Firefox continues to redirect.
Clearing the cache usually clears all permanent redirects. Does Firefox have some special behaviour for HTTP > HTTPS redirects, whereby it remembers them even when the cache is cleared? I do not have the HTTPS Everywhere extension enabled.
Mozilla/5.0 (Windows NT 6.0; rv:16.0) Gecko/20100101 Firefox/16.0
Enabled Extensions: All-in-One Sidebar, British English Dictionary, ColorZilla, Dummy Lipsum, Execute JS, Firebug, Link Alert, Live HTTP headers, MeasureIt, RSS Icon, ShowIP, SQLite Manager, Web Developer. I don't imagine any of them will have this effect.
Is this a Firefox bug, or am I doing something wrong?
I have this same issue with Chrome, although it does happen with Firefox too. Did you find a solution? – ubermensch – 2012-12-28T13:53:56.390
Nope. I continued testing in Safari instead. – TRiG – 2012-12-28T16:41:47.107