Skip to content

The example does not include code for handling ETag requests #23990

@Linde7777

Description

@Linde7777

Existing documentation URL(s)

https://developers.cloudflare.com/r2/api/workers/workers-api-usage/

What changes are you suggesting?

The code in the example sets an ETag in the response when receiving a GET request, but if the browser sends an ETag request, the worker does not seem to respond with the ETag.

Is there a simpler way to make the Worker act as a transparent layer, where the Worker only handles authentication and leaves everything else to R2? For example, can R2 set the ETag for GET requests and respond to ETag requests?

Additional information

No response

Metadata

Metadata

Labels

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