Skip to content

Support RFC 5861 Cache-Control Extensions #60008

Open
@ItsVeryWindy

Description

@ItsVeryWindy

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

[https://httpwg.org/specs/rfc5861.html](RFC 5861) extends the Cache-Control header to include two new directives for http responses, stale-while-revalidate and stale-if-error.

stale-while-revalidate in particular is supported by all main browsers, stale-if-error whilst doesn't appear to have browser support is in use by some cdns.

Currently to set either of these means having to manually play about with the Cache-Control header and/or implementing your own middleware.

Describe the solution you'd like

It would be nice if either of these could be supported by the ResponseCachingMiddleware in order to signal clients how caching should be handled.

Additional context

No response

Activity

ghost added
area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewares
on Jan 23, 2025
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

    area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewares

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ItsVeryWindy

        Issue actions

          Support RFC 5861 Cache-Control Extensions · Issue #60008 · dotnet/aspnetcore