Skip to content

Add support for RFC5861 Cache-Control headers #2948

Closed

Description

@calpaterson

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.

Activity

  1. added this to the 3.1.0 milestone on Oct 25, 2024
  2. locked as resolved and limited conversation to collaborators on Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions