Closed adam-singer closed 10 years ago
gsutil help metadata
gsutil -h "Cache-Control:public,max-age=3600" cp -a public-read \
-r html gs://bucket/html
Add the Cache-Control:public,max-age=3600
header when uploading to cloud storage.
cache control quick reference http://www.askapache.com/hacking/speed-site-caching-cache-control.html#htaccess_time_cheatsheet
3600 1 HR
604800 1 WEEK
4838400 2 MONTH
29030400 12 MONTH
Cache can be controlled from https://developers.google.com/storage/docs/gsutil/commands/setmeta