News for hackers. Stuff that matters.
Re:Default styles for h1 elements are changing by savolai on Friday April 11, 2025 @12:07AM (#43650432)
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.”
Re:Default styles for h1 elements are changing by skydhash on Friday April 11, 2025 @12:54AM (#43650609)
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.
Re:Default styles for h1 elements are changing by savolai on Friday April 11, 2025 @01:26PM (#43656264)
Yeah, it's just been a while so I felt sketchy advicing something that might have changed.