Render the Last-Modified header when serving static files. We are already performing .stat() on the open file handle, so we should have the required modification date.
When serving, also check the If-Modified-Since header, and render HTTP 304 Not Modified if appropriate.
This issue is very similar to #2243, but probably slightly easier, so maybe this one could be taken first.
Render the
Last-Modified
header when serving static files. We are already performing.stat()
on the open file handle, so we should have the required modification date.When serving, also check the If-Modified-Since header, and render
HTTP 304 Not Modified
if appropriate.This issue is very similar to #2243, but probably slightly easier, so maybe this one could be taken first.