This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
借助 Cloudflare Workers 呈现原始文件 #488
BrandonStudio
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
从文件页获取的直链 浏览器直接访问时会理解为下载链接,其原因在于响应中包含 content-disposition 头。
可以借助 Cloudflare Workers 代理链接并去掉此响应头。此行为还可缩短URL长度。
类似于从前的 Proxy Download。
使用 Cloudflare Workers 的代理可能在中国大陆延迟较高,但速度不慢。
可以在此处查看视频文件的示例。
代码片段提供在这里
Beta Was this translation helpful? Give feedback.
All reactions