Is there any way to set Bucket\'s default cache control (trying to override the public, max-age=3600
in bucket level every time creating a new object)
S
If someone is still looking for an answer, one needs to set the metadata while adding the blob.
For those who want to update the metadata for all existing objects in the bucket, you can use setmeta
from gsutil
- https://cloud.google.com/storage/docs/gsutil/commands/setmeta
You just need to do the following :
gsutil setmeta -r -h "Cache-control:public, max-age=12345" gs://bucket_name