Skip to content

Commit e366c65

Browse files
committed
docs(isr): list negotiated media types among cache bypasses
1 parent 5c345c0 commit e366c65

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎docs/guide/edge/revalidation.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ Responses that vary by request headers, such as `Vary: Accept-Language` or `Vary
109109

110110
Requests with `Cookie`, `Authorization`, or Cloudflare Access's `Cf-Access-Jwt-Assertion` header bypass the ISR cache entirely and always dispatch to the worker. Authenticated responses are not shared between users, including when Access authentication supplies no cookie.
111111

112+
A request that negotiates a representation other than the cached HTML document also bypasses the cache, because each path holds a single cached body. That covers `Accept: text/event-stream` and `Accept: text/markdown`, so middleware that answers those requests in another format runs on every request.
113+
112114
## Cache keys and rewrites
113115

114116
For a dispatch rewrite, the cache key includes both the destination and original pathname. A direct request to `/en/docs/foo` therefore uses a different entry from `/docs/foo` rewritten to that destination.

0 commit comments

Comments
 (0)