I have a web page that implements the post/redirect/get pattern to avoid double posts in a simple CRUD application.
The intended request/response sequence here is:
POST
302 Moved Temporarily
and a Location
headerGET
This is how it is supposed to work – and it does, in Chrome for example.
Internet Explorer 9, however, sends step 3 as a POST
, too (including the complete set of form data!). Why? What should I do to make it use GET
?
I should add that apart from the query string the redirect goes to the same location as the form target.
I've tried:
Location
headerAfter 25+ years of helping people use and experience the web, Internet Explorer (IE) is officially retired and out of support as of today, June 15, 2022. To many millions of you, thank you for using Internet Explorer as your gateway to the internet.
How Do I Stop Internet Explorer from Redirecting to Edge? Launch Microsoft Edge and go to Settings. Navigate to Default browser, and locate Let Internet Explorer open sites in Microsoft Edge. Set this option to Never.
The correct status code if you want a GET is 303, although 301 and 302 will also do what you want in common browsers.
If this is not working, something else probably is wrong. An HTTP trace would be helpful for finding what is wrong.
I'm not sure but it seems like IE9 doesn't actually sent "POST" after redirect 30x - it just displays it in his internal debugger.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With