Add ETag getObject with If-None-Match #5967
Labels
area/API
Improvements or additions to the API
good first issue
Good for newcomers
new-feature
Issues that introduce new feature or capability
no stale
Using this label will prevent items from being marked as stale
performance
What
Add an optional
If-None-Match: "ETag"
header togetObject
requests. When an ETag is passed, if that ETag is current for the object on that path then return 304 Not Modified.(Note that for a non-branch ref, we expect the ETag always to match!)
Use-case
My server reads configuration from an object stored on lakeFS. Periodically it needs to refresh the configuration. So it calls getObject. Ideally it would be able to avoid reading the data during a refresh.
Even better: if lakeFS versions before we add this feature simply ignore the header, my server will work with them too!
The text was updated successfully, but these errors were encountered: