Skip to content

A stale read's background refresh writes to the request context after the response #4370

Open

Description

@ldt1996

When allowStaleWhileRevalidate serves a stale record, the background refresh sets context.lastModified and context.lastRefreshed on the context of the read that started it, after that read has returned. A caller that reuses the context can see values from the refresh rather than from what it served. This predates #4367, which leaves it unchanged.

Review-Deferral: 6aef72546c35fcc8 severity=nit category=correctness

🤖 Generated by Claude Opus 5.5 (Claude Code); posted via @ldt1996.

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

    Fields

    Priority

    P3

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions