Skip to content

Commit 8959cbd

Browse files
hamishwilleebsmth
andauthored
FF145 Experimental Features: Idempotency-Key (#41698)
* FF145 ExprFeat: IdempotencyKey * Apply suggestions from code review Co-authored-by: Brian Smith <[email protected]> --------- Co-authored-by: Brian Smith <[email protected]>
1 parent 43515e7 commit 8959cbd

File tree

1 file changed

+20
-0
lines changed
  • files/en-us/mozilla/firefox/experimental_features

1 file changed

+20
-0
lines changed

files/en-us/mozilla/firefox/experimental_features/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,26 @@ When `Integrity-Policy` is used, the browser blocks the loading of styles refere
759759
- `security.integrity_policy.stylesheet.enabled`
760760
- : Set to `true` to enable.
761761

762+
### Idempotency-Key
763+
764+
The {{httpheader("Idempotency-Key")}} HTTP request header can be used by website client code to make a {{HTTPMethod("POST")}} or {{HTTPMethod("PATCH")}} requests {{glossary("idempotent")}} when used with a server that supports it.
765+
The specification indicates that the server should document and advertise which endpoints require this header, the format of the key, and expected error responses.
766+
767+
Firefox _automatically_ adds the header with a unique key for each new `POST` request if it has not already been added by the page client-side code.
768+
This simplifies the client-side code required to work with servers that support the feature.
769+
770+
([Firefox bug 1830022](https://bugzil.la/1830022)).
771+
772+
| Release channel | Version added | Enabled by default? |
773+
| ----------------- | ------------- | ------------------- |
774+
| Nightly | 135 | No |
775+
| Developer Edition | 135 | No |
776+
| Beta | 135 | No |
777+
| Release | 135 | No |
778+
779+
- `network.http.idempotencyKey.enabled`
780+
- : Set to `true` to enable.
781+
762782
### Accept header with MIME type image/jxl
763783

764784
The HTTP [`Accept`](/en-US/docs/Web/HTTP/Reference/Headers/Accept) header in [default requests and image requests](/en-US/docs/Web/HTTP/Guides/Content_negotiation/List_of_default_Accept_values) can be configured via a preference to indicate support for the `image/jxl` MIME type.

0 commit comments

Comments
 (0)