Closed cuibonobo closed 2 years ago
Cache-Control
policies for the entire bucket can be set with b2_update_bucket
. The bucket info can also be changed in the UI under Bucket Settings > Bucket Info. I've set it to {"cache-control": "max-age=31536000"}
so that images are cached for a year.
Done.
The
b2_upload_file
operation allows up to 10X-Bz-Info-*
headers. One of them can beX-Bz-Info-b2-cache-control
for settingCache-Control
for individual files. However, if I can set this at the bucket-level that would be a better option.