Skip to content

Responses from https://download.pytorch.org/whl/cpu have cache-control: no-cache set in their headers #130571

Open
pytorch/test-infra
#6188
@aabtop

Description

@aabtop

🐛 Describe the bug

Not sure if this is intentional, but it makes it difficult for the responses to play well with caching, e.g. this prompted the astral-sh/uv#4967 where it's unclear how to resolve.

FWIW,

% curl -I https://download.pytorch.org/whl/cpu | grep cache-control
cache-control: no-cache,no-store,must-revalidate

and

% curl -I https://pypi.org/simple/ | grep cache-control
cache-control: max-age=600, public

In this particular instance this is manifesting as a problem for me because requests to https://download.pytorch.org/whl/cpu sometimes sporadically fail (e.g. with 503), so being able to reliably cache it would mitigate this considerably.

Versions

Fairly certain this issue is independent of my runtime and reproducible anywhere.

cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @seemethere @malfet @osalpekar @atalman

Metadata

Metadata

Assignees

Labels

module: binariesAnything related to official binaries that we release to userstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions