GitHub 加速总览
拼接规则
https://gh-proxy.cn/github/<完整的 GitHub 链接>
原始链接中的查询参数会被完整保留:
https://github.com/git/git/archive/refs/heads/master.tar.gz
becomes
https://gh-proxy.cn/github/https://github.com/git/git/archive/refs/heads/master.tar.gz
支持的资源
| 资源 | 说明 |
|---|---|
| Repository | 仓库页面与仓库数据 |
| Release | Release 页面与 Release Asset |
| Archive | archive/refs/heads/*、archive/refs/tags/* |
| Raw | raw.githubusercontent.com 原始文件 |
| Blob | 自动转换为 Raw 链接 |
| Gist | gist.githubusercontent.com |
| API | api.github.com,透传 Authorization |
| Clone | Git HTTP Smart Protocol(GET + POST) |
| Avatar | avatars.githubusercontent.com |
| Objects | objects.githubusercontent.com |
| Desktop | desktop.githubusercontent.com |
| nightly.link | 构建产物下载 |
断点续传
代理完整透传 Range、If-Range、Content-Range、
Accept-Ranges 与 Content-Length 头,
因此 wget -c、curl -C -、IDM、aria2 等工具都可以正常续传。
为什么不是链接重定向
本站采用流式反向代理:上游数据边读边写,不在内存中缓存整个文件,
也不会把真实下载地址暴露给客户端,因此可以统计流量并统一限速。