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?