-
Notifications
You must be signed in to change notification settings - Fork 100
Adjust index page Cache-Control
headers
#6188
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
base: main
Are you sure you want to change the base?
Conversation
@edmorley is attempting to deploy a commit to the Meta Open Source Team on Vercel. A member of the Team first needs to authorize it. |
Hi @edmorley Looks good. lets also keep explicit |
222a002
to
59d6334
Compare
@atalman Thank you for the initial review. I've made the suggested changes and rebased on latest |
59d6334
to
2fc07fe
Compare
@atalman Hi! I don't suppose you have time for a re-review? :-) |
This changes the `Cache-Control` value for index pages from: `no-cache,no-store,must-revalidate` ...to: `max-age=600, public` In order to allow the pages to be cached for up to 10 minutes. The new value was chosen so that it matches that returned for PyPI index pages: ``` $ curl -sSI https://pypi.org/simple/ | rg cache-control cache-control: max-age=600, public ``` For explanations of the directives, see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#response_directives Fixes #pytorch/pytorch#130571.
2fc07fe
to
9f7d1b0
Compare
@atalman Hi! Your review comments have been addressed (back in Feb), and I've just rebased again on I don't suppose you could re-review and merge? Thanks :-) |
This changes the
Cache-Control
value for index pages from:no-cache,no-store,must-revalidate
...to:
max-age=600, public
In order to allow the pages to be cached for up to 10 minutes.
The new value was chosen so that it matches that returned for PyPI index pages:
For explanations of the directives, see:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#response_directives
Fixes pytorch/pytorch#130571.