Skip to content

Handle Stale(ish) Index Pages #2906

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

Closed
dstufft opened this issue Jun 12, 2015 · 1 comment
Closed

Handle Stale(ish) Index Pages #2906

dstufft opened this issue Jun 12, 2015 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@dstufft
Copy link
Member

dstufft commented Jun 12, 2015

Currently accessing pages like /simple/foo/ will cache the responses for up to 10 minutes, if someone releases a version in that 10 minutes this can lead to some confusing results. We can communicate to people that they are getting a cached result better (see #2901) but it would be nice if we can think of a way to remove this small window of time when an update won't be visible to these users.

In #2904 @rbtcollins came up with:

The second I think a last-invalidated RSS-or-similar feed from PyPI itself would be appropriate (e.g. lists the API pages invalidated in the last say 12 minutes and the timestamp of their invalidation) - we can compare that to the Date header on the pages as we access them providing cheap (1 small HTTP request-response per pip install/wheel invocation) invalidation across arbitrary pages. Basically the same strategy as has been used to make Squid ultra responsive for accelerated sites for ages.

@dstufft
Copy link
Member Author

dstufft commented Mar 22, 2017

Closing this, the cache is useful particularly for tox runs and people with high latency internet. Any possible solution here is going to be more trouble than it is worth.

@dstufft dstufft closed this as completed Mar 22, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

1 participant