【发布时间】:2020-09-24 21:49:01
【问题描述】:
我使用 Google Cloud Storage 作为 CDN 来更快地在网页上传送我的静态文件。上传新文件后,我将公共缓存设置为一年:
gsutil setmeta -h "Cache-Control:public, max-age=31536000" -r gs://my-bucket
如果我更新文件,Google 仍会提供旧版本。如何清除缓存以获取新文件?我通过https://my-bucket.storage.googleapis.com访问文件
谢谢
【问题讨论】:
标签: caching google-cloud-platform google-cloud-storage