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 support for RFC5861 Cache-Control headers #2948

Open
calpaterson opened this issue Sep 9, 2024 · 0 comments · May be fixed by #2949
Open

Add support for RFC5861 Cache-Control headers #2948

calpaterson opened this issue Sep 9, 2024 · 0 comments · May be fixed by #2949

Comments

@calpaterson
Copy link

RFC5861 standardised two Cache-Control extensions:

  1. stale-while-revalidate
  2. stale-if-error

Please add support for these in the standard werkzerg ResponseCacheControl.

One use case of these extensions is to allow sites to have their CDNs "coalesce" requests for content when it goes stale. Another is to serve a stale representation from the CDN when the site is having an outage. It's possible to solve this problem without changes to werkzeug, but as it's a standard feature, I think it would be nice to have it in the library.

@calpaterson calpaterson linked a pull request Sep 9, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant