News for hackers. Stuff that matters.
Re:You know how HTTP GET requests are meant to be idempotent? by athenot on Tuesday May 01, 2018 @08:55AM (#16966602)
I remember having a similar issue in 2000, before any (meaningful) client-side javascript. Solution: each link that did something also had a request_id parameter, which was a timestamp in milliseconds. Two requests with the same request_id meant the user had clicked something twice, so any action would NOT be performed multiple times if the same request_id came in more than once.

This let users double click on links and have the action performed only once. In 2000, hyperlinks were still confusing to some users who were used to "double-click = open", especially for file icons.

EDIT: added text in italics because initial wording was confusing.

Re:You know how HTTP GET requests are meant to be idempotent? by ams6110 on Tuesday May 01, 2018 @09:00AM (#16966644)
A not-small percentage of users double click links (and buttons, and anything else that needs clicking).
Re:You know how HTTP GET requests are meant to be idempotent? by 0xcde4c3db on Tuesday May 01, 2018 @09:34AM (#16966893)
The wording is a little ambiguous, but I think the scheme was that the first request is honored and any subsequent requests are ignored, not that additional requests cancel or undo the action altogether.
Re:You know how HTTP GET requests are meant to be idempotent? by athenot on Tuesday May 01, 2018 @10:18AM (#16967198)
Thanks! Yes I didn't word that properly. :(