Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have done this in projects with POST forms: ”To avoid the resubmit warning when hitting back, use the Post/Redirect/Get pattern: after a POST, redirect with a 303 to a normal GET page. The browser skips saving the POST in history, so back just takes you to the form without complaining.”


I thought that was the normal pattern, either rendering the form again when there's an error or redirect to the correct page in case of success.


Yeah, it's just been a while so I felt sketchy advicing something that might have changed.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: