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

Handling of max-age from PyPI #12

Open
pelson opened this issue Sep 9, 2024 · 1 comment
Open

Handling of max-age from PyPI #12

pelson opened this issue Sep 9, 2024 · 1 comment

Comments

@pelson
Copy link
Contributor

pelson commented Sep 9, 2024

There is a long and chequered history of max-age handling... notably:

What should simple-repository-server do? My feeling is that it should probably honour the max-age header. I would probably support a specific way to invalidate the cache when we know it is no longer correct (e.g. because there was an upload) - there is nothing standards-based (http standards) to support this, AFAIK.

@pelson
Copy link
Contributor Author

pelson commented Sep 10, 2024

We should probably just use https://hishel.com/userguide/ for following the caching RFCs to the letter. We can always override max-age cache if we care about always getting the most fresh content (like pip does). cc @ivany4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant