Caching and conditional headers #16
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Chewing_Bever/lnm#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
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-SinceandIf-Unmodified-Sinceheaders.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.