... | ... | @@ -12,6 +12,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
|
|
|
* Note: compressed is necessary to get gzipped delivery. Google Cloud storage does not compress on the fly but should decompress on the fly for old browsers that can't accept decompressed files.
|
|
|
|
|
|
gsutil -m cp -Rzv mathjax gs://mathjax-cdn/
|
|
|
|
... | ... | @@ -68,8 +69,10 @@ Notes: |
|
|
* 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 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
|
|
|
* For otf:
|
|
|
|
|
|
gsutil setmeta -r -h "Content-Type:application/font-woff" -h "Cache-Control:public, max-age=3600" -h "Content-Disposition" gs://mathjax-cdn/mathjax/2.3-latest/fonts/HTML-CSS/**.woff
|
|
|
|
|
|
|
... | ... | |