Support ETag
for static files
#2243
Labels
enhancement
good first issue
Comment on this issue if you'd like to volunteer to work on this. Thanks!
needs contributor
Comment on this issue if you'd like to volunteer to work on this. Thanks!
Milestone
Render the
ETag
header when serving static files. We are already performing.stat()
on the open file handle, so we should have the required data in order to build an ETag. We could use the same algorithm as the popular Nginx web server.When serving, also check the If-None-Match header, and render
HTTP 304 Not Modified
if appropriate.The text was updated successfully, but these errors were encountered: