How to get the e-tag during a get_opts
operation?
#4495
Unanswered
winding-lines
asked this question in
Q&A
Replies: 2 comments
-
Unfortunately there isn't a way to do this currently, but perhaps this is something that could be added as part of #4352 |
Beta Was this translation helpful? Give feedback.
0 replies
-
#4677 proposes an API change that will provide access to the etag on get |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is the flow I am trying to implement:
if_none_match
a. if the tag has changed save the new content and e-tag
b. otherwise the api will fail and I can use the local data
I don't seem to have a way to get the e-tag from a
get
orget_opts
API call. The docs and tests I found indicate that I need to do ahead
to get the metadata for a given object and get the e-tag from the metadata. But this increases the number of API calls, ifget
had a way to return the e-tag I could implement the logic above just will calls toget
.Am I missing something?
Thanks for your advice.
Beta Was this translation helpful? Give feedback.
All reactions