You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* FF145 ExprFeat: IdempotencyKey
* Apply suggestions from code review
Co-authored-by: Brian Smith <[email protected]>
---------
Co-authored-by: Brian Smith <[email protected]>
Copy file name to clipboardExpand all lines: files/en-us/mozilla/firefox/experimental_features/index.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -759,6 +759,26 @@ When `Integrity-Policy` is used, the browser blocks the loading of styles refere
759
759
-`security.integrity_policy.stylesheet.enabled`
760
760
- : Set to `true` to enable.
761
761
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.
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