-
Notifications
You must be signed in to change notification settings - Fork 22.9k
FF144 Idempotency-Key - draft docs #41572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Preview URLs Flaws (6)URL:
URL:
(comment last updated: 2025-10-24 06:13:22) |
d28feda to
45e0a9e
Compare
files/en-us/web/http/reference/headers/idempotency-key/index.md
Outdated
Show resolved
Hide resolved
| <!-- ## Browser integration --> | ||
| <!-- Firefox has a (non-standard) integration that automatically applies keys. | ||
| This is discussed in https://bugzilla.mozilla.org/show_bug.cgi?id=1991641#c6 | ||
| Since this might not survive in the shipped release it is undocumented now. | ||
| This hidden comment remains so that the possible differences are known at that point by the editor. | ||
| --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI NOrmally an app would set the header in JavaScript. Firefox currently does this automatically, but of course NOT to whatever standard is defined by the server. I added a note in the BCD entry for this, but the behaviour on release isn't known, so I haven't commented here. Kept a note to remind me.
FF135 adds support for the
Idempotency-Keyheader behind a preference - I'm working on this because there was an abortive attempt to ship in 145.This allows a client to make a POST or PATCH request idempotent, so that if the client doesn't receive a response it can safely resend the request without having to worry about whether the server already acted on it and the response was just lost.
The key is sent in each new requests to indicate that a POST/PATCH is a particular unique command. If the server gets the same request with the same key it doesn't act on it after the first time, but responds as though it had. The key and error response format is defined by the server.
Related docs work can be tracked in #41497