Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set metadata cache-control for one day #33

Open
ff6347 opened this issue Jul 29, 2020 · 0 comments
Open

Set metadata cache-control for one day #33

ff6347 opened this issue Jul 29, 2020 · 0 comments

Comments

@ff6347
Copy link
Collaborator

ff6347 commented Jul 29, 2020

e.g.

s3 = boto3.client('s3')
path = 'foo/bar.json'
file = 'bar.json'
bucket_name = 'foobar_bucket'
extra_args = {'CacheControl': 'max-age=86400'}
s3.upload_file(path, bucket_name, file_name, extra_args)

source

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

No branches or pull requests

1 participant