Skip to content

Commit

Permalink
gateway: explicit should for trustless clients
Browse files Browse the repository at this point in the history
This is duplicated content, but is harmless, and having it here will
save everyone a lot of headache debugging weird HTTP caching setups.
  • Loading branch information
lidel committed Apr 17, 2024
1 parent 209783a commit 11100a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/http-gateways/trustless-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ Same as [`format`](https://specs.ipfs.tech/http-gateways/path-gateway/#format-re
- `format=car``application/vnd.ipld.car`
- `format=ipns-record``application/vnd.ipfs.ipns-record`

A Client SHOULD include the `format` query parameter in the request URL, in
addition to the `Accept` header. This provides the best interoperability and
ensures consistent HTTP cache behavior across various gateway implementations.

### :dfn[`dag-scope`] (request query parameter)

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

0 comments on commit 11100a7

Please sign in to comment.