Skip to content

R2 API docs: unclear what happens with onlyIf: request.headers #14126

Open
@NV

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

Metadata

Labels

DevRelTasks that need support from developer relations.content:editRequest for content editsdocumentationDocumentation editsproduct:r2R2 object storage: https://developers.cloudflare.com/r2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions