Skip to content

CDN が大きなファイルを扱えない場合がある #168

Open
@thinca

Description

@thinca

例えば jsDelivr の場合、20MB 以上のファイルを扱うことができません。

https://github.com/jsdelivr/jsdelivr#restrictions

raw.githubusercontent.com の場合はデータの取得はできますが、Content-Type が application/octet-stream になっているため、画像を単独で開こうとした場合に表示ではなくローカルへの保存になってしまったりしてあまり嬉しくない場合があります。

また、jsDelivr の場合は access-control-allow-origin 等のヘッダがありますが、githubusercontent にはありません。
例えば今後、 SPA にしてログデータの JSON を取ってくるような仕組みにする場合は githubusercontent は使えないことになります。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions