[PR #407] feat: implements remaining http cache conditionals #6830

Closed
opened 2026-05-31 00:15:31 +03:00 by zhus · 0 comments
Owner

Original Pull Request: https://github.com/sigoden/dufs/pull/407

State: closed
Merged: Yes


Hi,

this PR fixes/implements some of the HTTP conditionals like "if-modified":

  • if-modified-since: was implemented
  • if-unmodified-since: was not implemented
  • if-none-match + etag: was implemented
  • if-match + etag: was not implemented

This PR implements/fixes those conditionals and also adds some testcases for all 4.

I hope you like it.

For reference, MDN Documentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since

edit: clarified "if-modified-since". I misread the code.

**Original Pull Request:** https://github.com/sigoden/dufs/pull/407 **State:** closed **Merged:** Yes --- Hi, this PR fixes/implements some of the HTTP conditionals like "if-modified": - if-modified-since: was implemented - if-unmodified-since: was not implemented - if-none-match + etag: was implemented - if-match + etag: was not implemented This PR implements/fixes those conditionals and also adds some testcases for all 4. I hope you like it. For reference, MDN Documentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since edit: clarified "if-modified-since". I misread the code.
zhus added the pull-request label 2026-05-31 00:15:31 +03:00
zhus closed this issue 2026-05-31 00:15:32 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#6830