Skip to content

pytorch-wheels/torch 返回 301 跳转 #415

Description

@lexdene

mirror.sjtu.edu.cn 真的很棒!

但是最近遇见了一个小问题,这个 url 会返回 301 跳转。

$ curl -i https://mirror.sjtu.edu.cn/pytorch-wheels/torch
HTTP/2 301 
alt-svc: h3=":443"; ma=2592000
cerberus-sec: DISABLED
date: Fri, 10 Oct 2025 08:01:59 GMT
location: https://download.pytorch.org/whl/torch
via: 1.1 Caddy
x-intel-queue-length: 0
x-sjtug-mirror-id: siyuan
content-length: 0

如果返回 301 跳转的话,最终连接的还是 download.pytorch.org,速度太慢。
不确定这是不是 bug 。但是我们希望 pytorch-wheels/torch 能够直接返回内容。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions