Skip to content

fix: Generate ETags for description resources - #2269

Open
jeswr wants to merge 1 commit into
CommunitySolidServer:mainfrom
jeswr:fix/description-resource-etag
Open

jeswr wants to merge 1 commit into
CommunitySolidServer:mainfrom
jeswr:fix/description-resource-etag

Conversation

@jeswr

@jeswr jeswr commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

✍️ Description

Description resources (.meta) are returned without ETag or Last-Modified, so clients can't make conditional requests on them. They now take the modification date of the resource they describe, which also changes when the description is patched.

Added a unit test and an integration test in Conditions.test.ts (fails on main, no Last-Modified).

I used Claude Code to help write this change. I have reviewed the content of this PR myself.

✅ PR check list

  • Make sure you have personally reviewed and understood this contribution when using generative AI tools.
  • Target the correct branch based on semantic versioning.
    • main: Backwards compatible bug fixes and feature additions.
    • versions/next-major: Breaking changes, such as changes to APIs, configuration behaviour, or stored data.
  • Update documentation when relevant.
  • Update the release notes when adding new major features.

Description resources had no modification date, so they were returned
without an ETag or Last-Modified header, and clients could not make
conditional requests on them. They now share the modification date of
the resource they describe, which changes whenever the description does.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01NeSZT7mKQVVBn4vqTZ6CRn

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants