NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 40 min
What an Idempotency-Key promises, how to check it with one replay and one changed body, how a server stores it safely, and what it does not protect.
Alice presses the button to issue a credit note, the spinner turns, and the browser reports a network error. The request may never have arrived. It may have arrived, created the credit note, and lost only the answer on the way back. From where she sits the two look the same, and pressing the button again is the natural thing to do.
RFC 9110 does not list POST among the idempotent methods, so no client or proxy may assume that repeating one is harmless. Release 2.6.0 answers this with the Idempotency-Key request header on record_payment and on credit notes. The client attaches a value that identifies one intention, and the server promises that sending that intention again will not do the work twice.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in