Make conditional-etag-precedence actually test precedence#175
Conversation
Both conditionals evaluated to 304, so any evaluation order passed and a cache that ignored If-None-Match precedence was not caught. Move If-Modified-Since before Last-Modified so it alone would yield 200, while If-None-Match still yields 304; only a cache that honours the If-None-Match precedence (RFC 9110 13.2.2) returns the expected 304. Closes #169 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Review: gives
|
Fixes #169: in
conditional-etag-precedence, bothIf-None-Match(matches the stored ETag) andIf-Modified-Since(≈now, after the storedLast-Modified) independently evaluated to 304, so any evaluation order passedexpected_status: 304and a cache that gaveIf-Modified-Sinceprecedence was not caught.This moves
If-Modified-Sinceto beforeLast-Modified(-10000vs the response's-5000), so it alone would yield 200 whileIf-None-Matchstill yields 304. Only a cache that correctly givesIf-None-Matchprecedence (RFC 9110 §13.2.2) returns the expected 304.Closes #169
🤖 This PR was generated by an AI agent (Claude Code) under human supervision, as part of a maintainer-directed review of the test suite.