Make serveReaderFast ETag-aware (low priority)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- go
- Domain
- backend, performance
Research direction
Read internal/strategy/git/snapshot.go, starting at serveReaderFast and its http.ServeContent call. Run the existing snapshot-serving tests, then verify that file-backed snapshots return 304 for a matching If-None-Match and honor Range requests through ServeContent.
Written by the indexing model from the issue text.
Description
Follow-up from the ETag support assessment (label: etag-range-followup). Low priority / optimisation, not correctness.
internal/strategy/git/snapshot.go:serveReaderFast calls http.ServeContent with a zero ModTime and empty name, and only for *os.File readers, which neutralises the built-in conditional and range handling in ServeContent.
Work
Set the ETag (and use it consistently) so ServeContent can perform 304/range responses natively for file-backed snapshots.
Acceptance
File-backed snapshot serving returns 304 for a matching If-None-Match and honours Range via ServeContent.
- Dominant language
- Go
- Stars
- 41
- Forks
- 14
- Avg merge
- 23h 22m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from block/cachew
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 56/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100