Does pre-signed URL support cache when GET an object from R2?

For Workers & Pages, what is the name of the domain?

R2

What is the error number?

N/A

What is the error message?

N/A

What is the issue or error you’re encountering

Does the pre-signed URL support cache when using GET from R2 (or more precisely, does the pre-signed URL support CDN when retrieving object from R2)? Or you have to use cache API through a worker to use cache? Thank you.

You’d have to use the Worker approach.

  1. Pre-signed URLs only work on <accountid>.r2.cloudflarestorage.com
    Presigned URLs · Cloudflare R2 docs

  2. Caching only works on Custom Domains:
    Enable cache in an R2 bucket · Cloudflare Cache (CDN) docs

1 Like

Thank you for the reply. It is exactly what I want to know. Thank you.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.