Skip to content

Commit

Permalink
WIP: updating the rest of the fs stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mookums committed Nov 12, 2024
1 parent 9403e09 commit cd6b059
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/http/router.zig
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ pub fn Router(comptime Server: type) type {
}
provision.fd = fd;

// TODO: If we have a If-None-Match by this point, we should fire off a stat request
// that way we can check the last modified time and compare that with our ETag.
// We generally avoid using the HTTP Date stuff since it can be so slow.
//
// If we have a matching etag, we can just respond with Not Modified.
// If we don't then we continue doing what we normally do.
try rt.fs.read(
provision,
read_file_task,
Expand Down

0 comments on commit cd6b059

Please sign in to comment.