add support for caching headers #49

Merged
lx merged 1 commit from trinity-1686a/garage:cache-headers into master 2021-03-18 18:45:04 +00:00

fix #48
This should be compliant with rfc7232 except it does not implement If-Match and If-Unmodified-Since as they make sense mostly for state-changing methods, to not overwrite modifications made by other user-agents.

fix #48 This should be compliant with [rfc7232](https://tools.ietf.org/html/rfc7232) except it does not implement `If-Match` and `If-Unmodified-Since` as they make sense mostly for state-changing methods, to not overwrite modifications made by other user-agents.
trinity-1686a added 1 commit 2021-03-18 14:56:44 +00:00
add support for caching headers
Some checks failed
continuous-integration/drone/pr Build is failing
b4c903371c
Owner

LGTM. Before I merge, is there a possibility that a request contains both If-None-Match and If-Modified-Since, and is the behaviour specified in that case?

LGTM. Before I merge, is there a possibility that a request contains both `If-None-Match` and `If-Modified-Since`, and is the behaviour specified in that case?
lx closed this pull request 2021-03-18 18:27:21 +00:00
lx reopened this pull request 2021-03-18 18:35:58 +00:00
lx changed target branch from dev-0.2 to master 2021-03-18 18:36:44 +00:00
Author
Owner

It is possible, and is even usually the case. In this situation If-None-Match takes precedence and If-Modified-Since is ignored (as per 6.Precedence from rfc7232). The rational being that etag based matching is more accurate, it has no issue with sub-second precision for instance (in case of very fast updates)

It is possible, and is even usually the case. In this situation `If-None-Match` takes precedence and `If-Modified-Since` is ignored (as per 6.Precedence from rfc7232). The rational being that etag based matching is more accurate, it has no issue with sub-second precision for instance (in case of very fast updates)
Owner

Thank you for the precision. That's fine.

Thank you for the precision. That's fine.
lx merged commit bfa0ff8f82 into master 2021-03-18 18:45:04 +00:00
trinity-1686a deleted branch cache-headers 2021-03-18 18:49:50 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#49
No description provided.