When setting the cache-control metadata key via the gsutils command:
gsutil -m setmeta -h "Cache-Control:public, max-age=14400" 'gs://my-bucket/style.css'
I verify that the metadata is updated correctly using another gsutils command:
gsutil stat 'gs://my-bucket/style.css'
However, when accessing this object via curl --head
the value is not update
content-type: text/css
age: 232
cache-control: public,max-age=3600
I am expecting for the max-age of the cache-control property to be set to the value specified in the gsutil command which is 14400.
I was not using the correct cache-mode on the bucket, solution was in updating the cache-mode to USE_ORIGIN_HEADERS. Thank you!