Skip to content

Commit

Permalink
fix: clarify cache-control of generated html
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jul 29, 2024
1 parent 5814b25 commit 5e84225
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/http-gateways/path-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,12 @@ Returned directive depends on requested content path and format:

- `Cache-Control: public, max-age=29030400, immutable` MUST be returned for
every immutable resource under `/ipfs/` namespace.
- Generated `/ipfs/` responses such as UnixFS directory listings are not
byte-for-byte immutable and SHOULD have a meaningful expiration that allows
for generated responses to be updated over time. Suggested value is one week:
`public, max-age=604800, stale-while-revalidate=2678400`.

- `Cache-Control: public, max-age=<ttl>` SHOULD be returned for mutable
- `Cache-Control: public, max-age=<ttl>, stale-while-revalidate=2678400` SHOULD be returned for mutable
resources under `/ipns/{id-with-ttl}/` namespace; `max-age=<ttl>` SHOULD
indicate remaining TTL of the mutable pointer such as :cite[ipns-record] or DNSLink
TXT record.
Expand Down

0 comments on commit 5e84225

Please sign in to comment.