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
Post a Comment