mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #119] Generate Last-Modified and ETag headers #95
Labels
No labels
Feature request
Feature request
bug
cant reproduce
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pictshare#95
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?
Originally created by @Nutomic on GitHub (Jun 2, 2020).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/119
According to the docs of Pagespeed Insights, these headers are vital for browser caching of resources.
Both of these headers should be pretty easy to generate based on the filesystem. For last-modified, you just need to read the modification time from the filesystem. And for the etag, use something like an sha1sum of the file.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Etag
@geek-at commented on GitHub (Jun 2, 2020):
Great idea, thanks