Skip to content

Fix cache 304 validation and restore Tokio connector compatibility - #84

Merged
fannnzhang merged 1 commit into
mainfrom
bugfix/v0.1.3-release-blockers
Nov 25, 2026
Merged

fannnzhang merged 1 commit into
mainfrom
bugfix/v0.1.3-release-blockers

Conversation

@fannnzhang

@fannnzhang fannnzhang commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Check the request URI, variant eligibility, and validators before refreshing a stored response from a 304. Preserve caller-owned validation and replay the original GET once when the cache's own conditional exchange yields an unusable 304.
  • Guard in-memory refreshes against concurrent replacement. Exclude responses to followed redirects from the original URI's cache entries.
  • Restore the released TokioTcpConnector unit struct for bare construction and unit patterns. Its socket configuration methods return ConfiguredTokioTcpConnector, which shares the same TCP connection implementation.
  • Document the validation rules, recovery behavior, and connector API.

Verification

  • HTTP/1 regression tests cover matching and mismatching strong ETags, a weak-to-strong transition, variant isolation, untimed responses, a redirected 304, and a 304 received on recovery.
  • An external-crate test verifies the released connector constructor and unit pattern.
  • On macOS, local workspace tests passed with 589 default tests, 630 all-feature tests, and 2 doctests. Each workspace run had 16 ignored tests.
  • Formatting, all-feature Clippy, and crates.io package preflight passed.

@fannnzhang
fannnzhang merged commit e19f4f6 into main Nov 25, 2026
10 checks passed
@fannnzhang
fannnzhang deleted the bugfix/v0.1.3-release-blockers branch November 25, 2026 09:29
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.

1 participant