Static Site on Google Cloud Storage: Caching
Be aware Google Cloud storage sets Cache-Control:public, max-age=3600
header for all files by default. This means files are going to be cached
by browsers and proxies so it is going to take up to an hour for folks on the Internet
to see an update.
I’ve decided to decrease default max-age value to 600. So I upload blog files
with -h
option set now:
gsutil -h "Cache-Control:public, max-age=600" rsync -d -r . gs://<bucket_name>/