SESK: Stuff Everyone Should Know · sesk.info/tech-http-idempotent
Which HTTP method is not defined as idempotent, so repeating it can create duplicates?
POST is not defined as idempotent. PUT and DELETE are.
- PUT
- POST ✔
- DELETE
Why: Idempotent means doing it twice has the same effect as doing it once. Deleting the same item twice still leaves it deleted, but sending the same POST twice can create two orders.
Huh, didn't know that: GET, HEAD, OPTIONS and TRACE are also safe, meaning they are only supposed to read, not change anything.
I clicked Buy twice and got two orders. My wallet learned what POST means.
Like this card?
References
Answer: POST. Idempotent means doing it twice has the same effect as doing it once. Deleting the same item twice still leaves it deleted, but sending the same POST twice can create two orders.
- RFC 9110: HTTP Semantics www.rfc-editor.org/rfc/rfc9110
Of the request methods defined by this specification, PUT, DELETE, and safe request methods are idempotent.
Checked 2026-10-10.
Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.
More stuff everyone should know
That's stuff everyone should know.