Caching and conditional headers #16
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Chewing_Bever/lnm#16
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Caching can greatly reduce bandwidth and would be very useful to support from within the framework.
To support this globally, my current idea would be to allow the user to set the "last modified" date for a response body. This information could then be used to support the
If-Modified-Since
andIf-Unmodified-Since
headers.ETags would be less trivial to support generally, as the ETag values depend on the specific content. For this, we could allow the user to set the ETag value for a response body explicitely, and only handle ETag headers if the value is present. The application itself would then be responsible for creating and storing ETag values, for example by hashing the contents.