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

ETag support for /_matrix/client/v3/rooms/{roomId}/state #2020

Open
Half-Shot opened this issue Nov 29, 2024 · 0 comments
Open

ETag support for /_matrix/client/v3/rooms/{roomId}/state #2020

Half-Shot opened this issue Nov 29, 2024 · 0 comments
Labels
improvement An idea/future MSC for the spec

Comments

@Half-Shot
Copy link
Contributor

For https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3roomsroomidstate, https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag

Similar to #2019 , it would be nice to know if the state has changed since the last request was made to /state (again for the purposes of integrations moreso than clients). The server could presumably keep a simple incrementing hash value for the current state of a room, and whenever that changes the hash is recalculated. This could be quickly used as an ETag and result in a safer way to cache state for integrations.

@Half-Shot Half-Shot added the improvement An idea/future MSC for the spec label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An idea/future MSC for the spec
Projects
None yet
Development

No branches or pull requests

1 participant