我试图为Google Cloud Storage存储桶设置Cache-Control header 。它给了我400: Invalid argument error
而没有任何解释到底是什么错误。有任何想法吗?
例子:
gsutil setmeta -R -h 'Cache-Control:public, max-age=10000, no-transform' gs://example.com/stylesheets/
在
gs://example.com/stylesheets/site-77ee6060.css
上设置元数据BadRequestException: 400 Invalid argument
尝试使用不同的
max-age
,使用或不使用no-transform
,结果相同。存储桶已配置为网站。
最佳答案
我遇到了这个问题,发现我对该对象不再具有OWNER
权限(我团队中的其他人已编辑了该对象)。
关于google-cloud-storage - Google云存储,缓存控制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24360938/