Skip to content

Commit 11100a7

Browse files
committed
gateway: explicit should for trustless clients
This is duplicated content, but is harmless, and having it here will save everyone a lot of headache debugging weird HTTP caching setups.
1 parent 209783a commit 11100a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/http-gateways/trustless-gateway.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ Same as [`format`](https://specs.ipfs.tech/http-gateways/path-gateway/#format-re
9797
- `format=car``application/vnd.ipld.car`
9898
- `format=ipns-record``application/vnd.ipfs.ipns-record`
9999

100+
A Client SHOULD include the `format` query parameter in the request URL, in
101+
addition to the `Accept` header. This provides the best interoperability and
102+
ensures consistent HTTP cache behavior across various gateway implementations.
103+
100104
### :dfn[`dag-scope`] (request query parameter)
101105

102106
Optional, `dag-scope=(block|entity|all)` with default value `all`, only available for CAR requests.

0 commit comments

Comments
 (0)