caching - Add cache headers to all new assets in a Google Cloud bucket -


i know it's possible add cache headers existing google cloud bucket objects.

gsutil setmeta -h "content-type:text/html" \   -h "cache-control:public, max-age=3600" \   -h "content-disposition" gs://bucket/*.html 

https://cloud.google.com/storage/docs/gsutil/commands/setmeta

this works existing files in bucket newly uploaded file not have these caching headers.

how tell google add header every new file added bucket?

fwiw: using carrierwave fog in rails guess has nothing question.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -