Skip to content

Commit

Permalink
chore(gw): clarify default cache-control on missing ttl
Browse files Browse the repository at this point in the history
reuse one from /ipfs case, makes impl. and specs easier to reason about,
no need to introduce anything new
  • Loading branch information
lidel committed Jul 29, 2024
1 parent 5e84225 commit a9ab757
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/http-gateways/path-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ Returned directive depends on requested content path and format:
TXT record.
- Implementations MAY place an upper bound on any TTL received, as
noted in Section 8 of :cite[rfc2181].
- If TTL value is unknown, implementations SHOULD not send a `Cache-Control`
- If TTL value is unknown, implementations SHOULD send a meaningful `Cache-Control`,
ideally mathing the one from generated `/ipfs` responses above.
- No matter if TTL value is known or not, implementations SHOULD always
send a [`Last-Modified`](#last-modified-response-header) header with the timestamp of the record resolution.

Expand Down

0 comments on commit a9ab757

Please sign in to comment.