... | ... | @@ -34,16 +34,13 @@ Notes: |
|
|
* https://developers.google.com/storage/docs/gsutil/commands/setmeta
|
|
|
* the `**` wildcard includes subdirectories, https://developers.google.com/storage/docs/gsutil/addlhelp/WildcardNames
|
|
|
|
|
|
EOT and SVG `content-type` headers are detected correctly during upload to GCS.
|
|
|
WOFF, EOT, and SVG `content-type` headers are detected correctly during upload to GCS.
|
|
|
|
|
|
* For otf:
|
|
|
|
|
|
gsutil setmeta -r -h "Content-Type:font/opentype" gs://our-bucket/mathjax/**.otf
|
|
|
* For woff:
|
|
|
|
|
|
gsutil setmeta -r -h "Content-Type:application/font-woff" gs://our-bucket/mathjax/**.woff
|
|
|
|
|
|
WOFF is set to the old mime type `x-font/woff`; that works but we decided to go with the future-proof `font-woff`. Either change it as below or [see advice here](https://github.com/GoogleCloudPlatform/gsutil/issues/183#issuecomment-35741417) to do this automatically on upload.
|
|
|
Either change it as described or [see advice here](https://github.com/GoogleCloudPlatform/gsutil/issues/183#issuecomment-35741417) to do this automatically on upload.
|
|
|
|
|
|
|
|
|
## Testing
|
... | ... | |