Skip to content

Conversation

hamishwillee
Copy link
Contributor

FF145 adds support for the Idempotency-Key header in https://bugzilla.mozilla.org/show_bug.cgi?id=1991641

This has a spec https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/ but adding it results in an error. Can you remind me how to get an exception?

The key is sent in requests to indicate that a POST/PATCH is a particular unique command. If the server gets the same request with the same key it ignores it.
As specified the server defines the requirements for the key, which would be expected therefore to be unknown to the browser, and set by Javascript.
As such you wouldn't expect a browser integration, and hence no BCD entry.

However FF automatically attaches a key if one is not attached. As discussed in https://bugzilla.mozilla.org/show_bug.cgi?id=1991641#c6 this is probably because the server doesn't really need to care what the key does. This then is the reason to indicate integration.

Related docs work can be tracked in mdn/content#41497

@github-actions github-actions bot added data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP size:m [PR only] 25-100 LoC changed labels Oct 17, 2025
Copy link
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant