Skip to content

[dev-server] stale-while-revalidate caching to improve performance #1157

Open
@bennypowers

Description

@bennypowers

We could use the Cache-Control: stale-while-revalidate header to improve performance of subsequent reloads of the dev-server

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#Extension_Cache-Control_directives

https://web.dev/stale-while-revalidate/

This should initially be implemented as a plugin. After gathering use cases and feedback, we can evaluate adding it by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions