Xuanwo commented on issue #9078: URL: https://github.com/apache/opendal/issues/9078#issuecomment-7172104510
The proposed length-and-modification-time ETag can stay the same after the file contents change. In the local Fs test, a client then received `304 Not Modified` for a file it needed to fetch again. That makes the proposed fallback unsuitable as a validator, so I’m closing this request as not planned. For date-based revalidation, `HEAD` and `GET` expose `Last-Modified`. With `dav-server-opendalfs` 0.7.11, `dav-server` 0.11.0 and OpenDAL 0.59.5, both returned `304` for an unchanged file when sent `If-Modified-Since`. HTTP dates have one-second precision. `PROPFIND` also returned `DAV:getlastmodified` and omitted `DAV:getetag`. #9079 adds a regression test for the existing Fs response headers. *AI-generated maintenance comment.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
