Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thinca opened this issue Oct 27, 2021 · 1 comment
Open

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

thinca opened this issue Oct 27, 2021 · 1 comment

Comments

@thinca
Copy link
Member

thinca commented Oct 27, 2021

例えば 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 は使えないことになります。

@thinca
Copy link
Member Author

thinca commented Oct 27, 2021

現時点で 20MB を越えているファイルは以下。

❯ fd -S +20mb
files/F016BB256QY/VID_20200618_165434.mp4
files/F01Q4022YTU/image.png
files/F01SAG9CD41/画面収録 2021-03-20 21.19.59.mov
files/F01SE0D5RRP/Image from iOS.mov
files/F01UG8DQCT0/Image from iOS.mov
files/F022N4UJXAS/image.png
files/F02376Q100H/MOV_0105.mp4
files/F02DAQXFWHM/image.png
files/F02FK820X9D/S 2021-09-29 9.19.32.mp4
files/F02FT7FL6CW/S 2021-09-29 9.25.49.mp4
files/FBZ1TAKPC/out.gif
files/FLZ52Q5E2/File from iOS.mov
files/FR2RWQJLB/RPReplay_Final1575777169.mov

そんなに数も多くないので、一旦対応は保留としたい…。やる気がある人が現れたらやってほしい。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant