Patch to allow browsers to cache resources

Set Last-Modified-Date when serving files (date fetched from the cache) and
return status 304 if browsers send the correct If-Modified-Since.