Skip to content

Correct HTTP cache request directives - #200

Draft
zaniebot wants to merge 1 commit into
mainfrom
zb/bughunt200/163-fix-http-cache-request-directives
Draft

Correct HTTP cache request directives#200
zaniebot wants to merge 1 commit into
mainfrom
zb/bughunt200/163-fix-http-cache-request-directives

Conversation

@zaniebot

@zaniebot zaniebot commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Cached responses incorrectly become stale under min-fresh because the calculation uses epoch time; max-stale is read from the original request instead of the current one. Apply both directives to the cached response's age, as required by RFC 9111. This builds on the cache-age and exact-expiration fixes in uv#20178 and uv#20183.

@zaniebot
zaniebot force-pushed the zb/bughunt200/163-fix-http-cache-request-directives branch from 56ea6c0 to 877d64b Compare July 16, 2026 02:34
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt200/163-fix-http-cache-request-directives branch from 877d64b to 70f610a Compare July 17, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants