| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
… HEAD RFC 9110, §13.2.2 evaluates If-Match and If-Unmodified-Since before If-None-Match and If-Modified-Since, and requires a 412 response when they fail, also for GET and HEAD requests. Previously all failing read conditions resulted in a 304 response. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NeSZT7mKQVVBn4vqTZ6CRn
| Back | FazBrowse Home | New Git URL |
✍️ Description
A GET or HEAD whose If-Match or If-Unmodified-Since condition fails currently gets a 304. RFC 9110 §13.2.2 says those two are checked first and fail with 412, for any method. A failing If-None-Match or If-Modified-Since still gives 304.
Added unit tests and an integration test in Conditions.test.ts (fails on main with 304).
I used Claude Code to help write this change. I have reviewed the content of this PR myself.
✅ PR check list