Return an ETag on source GET and HEAD

Open Beginner friendly
#345 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
api, backend

Research direction

Start from the source GET and HEAD handlers in da-admin, then compare them with the conditional GET and PUT paths that already produce and accept an ETag. Check where Access-Control-Expose-Headers is set so the ETag remains exposed. Done means every successful plain GET and HEAD returns the storage ETag that a following conditional PUT accepts.

Written by the indexing model from the issue text.

Description

Plain GET and HEAD return no ETag; only conditional GET and PUT do. Clients can't learn the current ETag without a write or a guess. Some tools compute it as the MD5 of the body, which only works while that stays true.

Change

  • Return the storage ETag on every successful GET and HEAD of a source: the same value a following conditional PUT accepts.
  • Keep it in Access-Control-Expose-Headers.

Useful for da-collab — stop an open editor from overwriting outside writes.

Dominant language
JavaScript
Stars
6
Forks
18
Avg merge
5h 12m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from adobe/da-admin

All issues in adobe/da-admin

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.