Skip to content

Treat invalid HTTP cache freshness as stale - #113

Draft
zaniebot wants to merge 1 commit into
mainfrom
zb/bughunt100/088-httpcache-invalid-freshness
Draft

zaniebot wants to merge 1 commit into
mainfrom
zb/bughunt100/088-httpcache-invalid-freshness

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Invalid max-age can fall through to Last-Modified heuristics and invalid or duplicate Expires values can be accepted as fresh, allowing invalid freshness information to serve cached responses as fresh. Treat malformed or conflicting explicit freshness as immediately stale, retain the first duplicate cache directive as permitted by the RFC, and preserve saturation for oversized delta-seconds.

See RFC 9111's freshness-lifetime semantics and invalid-Expires handling.

@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt100/088-httpcache-invalid-freshness branch from 1228da2 to 41f22a5 Compare July 17, 2026 21:48
@zaniebot zaniebot added priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. size:3 Substantial: interacting behaviors, difficult compatibility questions, or a careful migration. bug Something isn't working compatibility Compatibility with a specification or another tool risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. labels Sep 9, 2026
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt100/088-httpcache-invalid-freshness branch from 41f22a5 to 1ad011a Compare September 30, 2026 14:48
@codspeed

codspeed Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 53 untouched benchmarks
⏩ 35 skipped benchmarks1


Comparing zb/bughunt100/088-httpcache-invalid-freshness (659e755) with main (3f70ccf)

Open in CodSpeed

Footnotes

  1. 35 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt100/088-httpcache-invalid-freshness branch from 1ad011a to 659e755 Compare October 1, 2026 16:50

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working compatibility Compatibility with a specification or another tool priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. size:3 Substantial: interacting behaviors, difficult compatibility questions, or a careful migration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants