luminus

Casey 2021-10-15T10:33:57.028900Z

when i have a :post handler to handle a form submission, how can i make it so if the user presses refresh it doesn't re-send the post?

Casey 2021-10-27T08:47:35.000700Z

Ah of course. It's been a decade since I worked on backend rendered applications... the things you forget :(

🙂 1
Timur Latypoff 2021-10-27T08:50:09.001600Z

Yeah, I also re-learned it recently after forgetting long time ago :)

Timur Latypoff 2021-10-20T09:57:12.029100Z

A usual way would be that the post request handler issues a redirect to a page that can safely be refreshed. There's even a small Wikipedia article about that: https://en.wikipedia.org/wiki/Post/Redirect/Get