Ok, so I have absolutely no idea what is going on here. If I PUT an object with `await env.R2.put(ke

Ok, so I have absolutely no idea what is going on here. If I PUT an object with await env.R2.put(key, request.body, {httpMetadata: {cacheControl: 'max-age=86400'}}), something really, really weird is happening with the HTTP metadata...

PUT result:
"httpMetadata":{"cacheControl":"max-age=86400"}
  • yup, this looks right
EAD result:
"httpMetadata":{"contentDisposition":"max-age=86400"}
  • this is not the right header 🤔
ET result (S3-compatible API):
content-language: max-age=86400
  • the header changed again???
Was this page helpful?