We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
例えば jsDelivr の場合、20MB 以上のファイルを扱うことができません。
https://github.com/jsdelivr/jsdelivr#restrictions
raw.githubusercontent.com の場合はデータの取得はできますが、Content-Type が application/octet-stream になっているため、画像を単独で開こうとした場合に表示ではなくローカルへの保存になってしまったりしてあまり嬉しくない場合があります。
application/octet-stream
また、jsDelivr の場合は access-control-allow-origin 等のヘッダがありますが、githubusercontent にはありません。 例えば今後、 SPA にしてログデータの JSON を取ってくるような仕組みにする場合は githubusercontent は使えないことになります。
access-control-allow-origin
The text was updated successfully, but these errors were encountered:
現時点で 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
そんなに数も多くないので、一旦対応は保留としたい…。やる気がある人が現れたらやってほしい。
Sorry, something went wrong.
No branches or pull requests
例えば 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 は使えないことになります。
The text was updated successfully, but these errors were encountered: