R2 API docs: unclear what happens with onlyIf: request.headers
#14126
Open
Description
Existing documentation URL(s)
https://developers.cloudflare.com/r2/api/workers/workers-api-reference/#r2getoptions
onlyIf R2Conditional | Headers
Specifies that the object should only be returned given satisfaction of certain conditions in the R2Conditional or in the conditional Headers. Refer to Conditional operations.
What changes are you suggesting?
I understand what happens when I pass R2Conditional. What happens when I pass a Headers object though? It seems to check If-None-Match
header and compare it to Etag
. Is there anything else? Would be nice to have it clarified in the documentation.
Additional information
No response