mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #407] [MERGED] feat: implements remaining http cache conditionals #600
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigoden/dufs/pull/407
Author: @TinyTinni
Created: 6/22/2024
Status: ✅ Merged
Merged: 6/23/2024
Merged by: @sigoden
Base:
main← Head:caching-conditions📝 Commits (2)
2da12d0implements remaining http conditionals032594dcomputed etag is not optional📊 Changes
2 files changed (+104 additions, -13 deletions)
View changed files
📝
src/server.rs(+24 -13)➕
tests/cache.rs(+80 -0)📄 Description
Hi,
this PR fixes/implements some of the HTTP conditionals like "if-modified":
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.