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

Add header controls for CDN in error cases #638

Open
ruflin opened this issue Sep 17, 2020 · 0 comments
Open

Add header controls for CDN in error cases #638

ruflin opened this issue Sep 17, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ruflin
Copy link
Member

ruflin commented Sep 17, 2020

Our CDN supports headers on what to do in case of errors. These are:

Surrogate-Control: max-age=3600, stale-if-error=86400

In case the registry is down or for example during upgrades, it can be useful that the CDN still ships the stale data. For this, it the package-registry should add these headers to the different endpoints.

Here are some docs: https://developer.fastly.com/reference/vcl/variables/miscellaneous/beresp-stale-if-error/

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

No branches or pull requests

3 participants