fix: HEAD requests fetch and stream the full body #89

Merged
benvin merged 1 commits from benvin/head-metadata-only into master 2026-07-02 22:06:51 +10:00

1 Commits

Author SHA1 Message Date
unkinben c129a09541 fix: resolve HEAD requests from metadata without streaming the body
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
Docker HEAD routes ran a full Fetch + io.Copy, downloading the whole blob
(and fetching upstream on a miss) only for net/http to discard the body.
Add Engine.Head, which answers cached artifacts/indexes from store
metadata and otherwise issues an upstream HEAD, and route HEAD to a
dedicated handler that writes headers only.

Refs #70
2026-07-02 00:36:59 +10:00