... | ... | @@ -13,7 +13,7 @@ Notes: |
|
|
* gsutil option: -m multithreaded (higher load+cost, faster)
|
|
|
* cp options: recursively (-R), compressed (-z), verbose (-v) https://developers.google.com/storage/docs/gsutil/commands/cp
|
|
|
|
|
|
gsutil -m cp -Rzv mathjax gs://mathjax-cdn/
|
|
|
gsutil -m cp -Rzv mathjax gs://mathjax-cdn/
|
|
|
|
|
|
This also works within google storage, i.e., `gsutil cp gs://bucket1/file1 gs://bucket2/`
|
|
|
|
... | ... | @@ -24,7 +24,7 @@ Notes: |
|
|
* should only be needed once
|
|
|
* https://developers.google.com/storage/docs/gsutil/commands/acl#set
|
|
|
|
|
|
gsutil -m setacl -R -a public-read gs://mathjax-cdn
|
|
|
gsutil -m setacl -R -a public-read gs://mathjax-cdn
|
|
|
|
|
|
### set CORS
|
|
|
|
... | ... | @@ -65,10 +65,10 @@ Notes: |
|
|
* https://developers.google.com/storage/docs/gsutil/commands/setmeta
|
|
|
* keep the `**` to match files in subdirectories https://developers.google.com/storage/docs/gsutil/addlhelp/WildcardNames
|
|
|
* EOT and SVG `content-type` headers are detected correctly during upload.
|
|
|
* WOFF is set to the old mime type `x-font/woff`; that works but we decided to go with the future-proof
|
|
|
* bug report at Google?
|
|
|
|
|
|
gsutil setmeta -r -h "Content-Type:font/opentype" -h "Cache-Control:public, max-age=3600" -h "Content-Disposition" gs://mathjax-cdn/mathjax/2.3-latest/fonts/HTML-CSS/**.otf
|
|
|
* WOFF is set to the old mime type `x-font/woff`; that works but we decided to go with the future-proof
|
|
|
* file bug report at Google?
|
|
|
* For example otf:
|
|
|
gsutil setmeta -r -h "Content-Type:font/opentype" -h "Cache-Control:public, max-age=3600" -h "Content-Disposition" gs://mathjax-cdn/mathjax/2.3-latest/fonts/HTML-CSS/**.otf
|
|
|
|
|
|
|
|
|
## TODO
|
... | ... | |