Skip to content
New issue

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

Allow users to override cache control headers #10444

Open
charliermarsh opened this issue Jan 9, 2025 · 4 comments
Open

Allow users to override cache control headers #10444

charliermarsh opened this issue Jan 9, 2025 · 4 comments
Labels
configuration Settings and such network Network connectivity e.g. proxies, DNS, and SSL

Comments

@charliermarsh
Copy link
Member

Some registries don't provide any cache-control headers, which can make for a suboptimal experience (see: #10359). (PyPI returns 10-minute caching headers.) I wonder if it makes sense to allow users to override the cache-control headers?

@charliermarsh charliermarsh added configuration Settings and such network Network connectivity e.g. proxies, DNS, and SSL labels Jan 9, 2025
@zanieb
Copy link
Member

zanieb commented Jan 9, 2025

See also #10380

@charliermarsh
Copy link
Member Author

#10380 seems different -- that appears to be a request that we add a mode that attempts to hit the index, but falls back to --offline behavior if it's unavailable?

@zanieb
Copy link
Member

zanieb commented Jan 10, 2025

I agree it's different. I think the similarity is that we may need to override cache control headers (as I mentioned there) to read from a stale cache? I'm not actually familiar with how that interacts with the offline mode.

@charliermarsh
Copy link
Member Author

I believe we allow reading from a stale cache in offline mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Settings and such network Network connectivity e.g. proxies, DNS, and SSL
Projects
None yet
Development

No branches or pull requests

2 participants