How to set cache-control header when using upload_local_file #357
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
How do you set the X-Bz-Info-b2-cache-control HTTP header documented here using the upload_local_file function?
I've tried to set via file_infos attribute using
file_infos={"Cache-Control": "max-age=86400"}
with no success.On testing using HEAD request to S3 URL returns
On testing using HEAD request to Friendly URL returns
Note that neither approach returns a native "Cache-Control" HTTP header
The text was updated successfully, but these errors were encountered: