Skip to content

Add Cache-Control support to uploads, multipart initiate, and presign… - #45

Merged
alexis- merged 1 commit into
mainfrom
develop
Aug 27, 2026
Merged

alexis- merged 1 commit into
mainfrom
develop

Conversation

@alexis-

@alexis- alexis- commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

…ed PUT URLs

  • Add an optional cacheControl parameter to the six upload members and InitiateMultipartUploadAsync; null or blank leaves the header unset.
  • The multipart path records Cache-Control on the initiate request, since S3 reads object headers from the initiate call and never from parts.
  • Add CacheControl to PresignedPutRequest: the header is signed into the URL, so the client must send exactly that value, and R2 stores it on the object.
  • The typed value overrides the same header in HeadersToSign, matching the checksum rule.
  • Version 2.5.0.

…ed PUT URLs

- Add an optional cacheControl parameter to the six upload members and
  InitiateMultipartUploadAsync; null or blank leaves the header unset.
- The multipart path records Cache-Control on the initiate request, since S3
  reads object headers from the initiate call and never from parts.
- Add CacheControl to PresignedPutRequest: the header is signed into the URL,
  so the client must send exactly that value, and R2 stores it on the object.
- The typed value overrides the same header in HeadersToSign, matching the
  checksum rule.
- Version 2.5.0.
@alexis-
alexis- merged commit 5366464 into main Aug 27, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant