Feature Request #3034
Request::redirect() $code parameter to be 303 as default (instead of 302)
|Assignee:||Woody Gilk||% Done:||
The code of 302 after POST submit causes browser to show the warning dialog, and sends the POST request it again if user agrees, while 303 does not do such a thing. Personally, I think that re-POST isn't something we, as developers, would want from regular users to do when it is not required, and so using 303 would be safer, and as such, the 303 should become a default value.
Updated by Korney Czukowski over 3 years ago
I'm not sure about making it default, esp. since you may specify the code when using
Otherwise, there's a note (even though could be considered obsolete now):
Note: Many pre-HTTP/1.1 user agents do not understand the 303
status. When interoperability with such clients is a concern, the
302 status code may be used instead, since most user agents react
to a 302 response as described here for 303.
Updated by Mathew Davies over 3 years ago
There's some additional information on the subject on wikipedia Post/Redirect/Get . There's no need for this ticket, it would just be easier to specify the 303 code when you need it.
Updated by N Komay over 3 years ago
As I said, I just wanted to know what others think about it, and your declamations speak to me, so we can safely close this ticket and not change anything :)