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

Closed
calpaterson opened this issue Sep 9, 2024 · 0 comments · Fixed by #2949
Closed

Add support for RFC5861 Cache-Control headers #2948

calpaterson opened this issue Sep 9, 2024 · 0 comments · Fixed by #2949
Milestone

Comments

@calpaterson
Copy link
Contributor

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.

@davidism davidism added this to the 3.1.0 milestone Oct 25, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants