Stop Firefox from redirecting to HTTPS

I don’t know anything about your web stack except for one thing: You’ve landed here because you are facing the same annoying problem I had with Django’s SECURE_SSL_REDIRECT.

After accidentally enabling this option in my local dev environment, the world’s favorite browser kept redirecting all localhost URLs to their https counterparts. This was super annoying as Django’s dev server doesn’t even speak https.

Disabling the option didn’t help as the damage had already been done: Firefox had correctly stored the 301 Moved Permanently redirect status in its cache to redirect future requests without delay.

After trying out different ways of deleting data in Firefox, this is what finally fixed my issue:

Edit → Preferences → Privacy & Security → Clear History… (FF73)
Edit → Preferences → Privacy & Security → Clear History… (FF73)