fix: serveFromStore does a guaranteed-miss S3 lookup on every cache hit #82
Reference in New Issue
Block a user
Delete Branch "benvin/fix-servefromstore-double-lookup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #78
Why
serveFromStorefirst calledstore.Downloadwith the bare content hash as the S3 key, which never matches real object keys (blobs/sha256/<hash>). Every cached blob serve therefore paid an extra guaranteed-404 round-trip before retrying with the correctBlobKey.Changes
Downloadattempt; go straight to theBlobKeylookup, then fall back to the index key.Validation
make e2epasses (proxy cache-hit paths exercised end-to-end).