我正在使用以下命令将文件上传到 Google 的云存储。这些命令 gzip HTML、CSS 和 JS,然后在 CSS、JS 和图像上将过期标头设置为 6 个月。
gsutil -m cp -z "html,css,js" -r dist/** gs://bucket/
gsutil -m setmeta -h "Cache-Control: public, max-age=15552000" gs://bucket/**/*.css
gsutil -m setmeta -h "Cache-Control: public, max-age=15552000" gs://bucket/**/*.js
gsutil -m setmeta -h "Cache-Control: public, max-age=15552000" gs://bucket/**/*.gif
gsutil -m setmeta -h "Cache-Control: public, max-age=15552000" gs://bucket/**/*.png
gsutil -m setmeta -h "Cache-Control: public, max-age=15552000" gs://bucket/**/*.jpg
是否可以将其简化为一两个命令?