Vitali
04/27/2022, 1:38 PMVitali
04/27/2022, 1:41 PMAccept-Ranges
header in the responseVitali
04/27/2022, 1:41 PMbytes=0-
documented - need to see if it's part of the specVitali
04/27/2022, 1:41 PMalbert
04/27/2022, 1:44 PMawait 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
HEAD result:
"httpMetadata":{"contentDisposition":"max-age=86400"}
- this is not the right header 🤔
GET result (S3-compatible API):
content-language: max-age=86400
- the header changed again???albert
04/27/2022, 1:45 PMcacheControl
can turn into Cache-Control
, Content-Disposition
or Content-Language
depending on where I request the object.albert
04/27/2022, 1:46 PMVitali
04/27/2022, 1:50 PMVitali
04/27/2022, 1:50 PMalbert
04/27/2022, 1:51 PMalbert
04/27/2022, 1:51 PMalbert
04/27/2022, 1:51 PMVitali
04/27/2022, 1:52 PMVitali
04/27/2022, 1:52 PMalbert
04/27/2022, 1:54 PMalbert
04/27/2022, 1:54 PMJames
04/27/2022, 1:54 PMVitali
04/27/2022, 1:55 PMalbert
04/27/2022, 1:56 PMalbert
04/27/2022, 1:57 PMVitali
04/27/2022, 2:08 PMVitali
04/27/2022, 2:09 PMVitali
04/27/2022, 2:11 PMVitali
04/27/2022, 2:11 PMVitali
04/27/2022, 2:25 PMVitali
04/27/2022, 2:32 PMVitali
04/27/2022, 2:33 PMVitali
04/27/2022, 2:33 PMalbert
04/27/2022, 2:33 PMe5f0f929bb59b9d5e1bc9b35e9e3bf00
Vitali
04/27/2022, 2:33 PM