Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ controls needed to avoid unsafe reuse:
- response `Cache-Control: public`, `max-age`, `s-maxage`,
`must-revalidate`, `no-cache`, and `no-store`
- `Expires` freshness when `max-age` is absent
- `Age` reducing remaining `max-age` freshness
- `Age` reducing remaining `max-age` freshness, including request-to-response
delay and residence since response headers (also while buffering the body)
- `Date` apparent age and Last-Modified heuristic freshness when explicit
freshness is absent
- multiple stored variants for one URI through `Vary` matching against the
Expand All @@ -357,6 +358,12 @@ controls needed to avoid unsafe reuse:
response URIs when present
- cached hits generate a current `Age` header

The built-in transport attaches per-exchange `ResponseTiming` metadata to H1
and H2 responses. Synthetic interceptor responses need this metadata to enter
the automatic cache; responses without it are returned without being stored.
Preserve response extensions when wrapping a body. See
[cache age evidence](docs/cache-age.md) for the RFC mapping and regression cases.

The cache intentionally remains conservative: it only stores `200 OK` `GET`
responses, skips responses with `Set-Cookie`, treats `s-maxage` as an
authenticated-storage permit rather than private-cache freshness, and does not
Expand Down
Loading
Loading