Skip to content

Commit a9ab757

Browse files
committed
chore(gw): clarify default cache-control on missing ttl
reuse one from /ipfs case, makes impl. and specs easier to reason about, no need to introduce anything new
1 parent 5e84225 commit a9ab757

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/http-gateways/path-gateway.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ Returned directive depends on requested content path and format:
437437
TXT record.
438438
- Implementations MAY place an upper bound on any TTL received, as
439439
noted in Section 8 of :cite[rfc2181].
440-
- If TTL value is unknown, implementations SHOULD not send a `Cache-Control`
440+
- If TTL value is unknown, implementations SHOULD send a meaningful `Cache-Control`,
441+
ideally mathing the one from generated `/ipfs` responses above.
441442
- No matter if TTL value is known or not, implementations SHOULD always
442443
send a [`Last-Modified`](#last-modified-response-header) header with the timestamp of the record resolution.
443444

0 commit comments

Comments
 (0)