You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cache: http/s3 size() answers Ok(None) for a present object, which the probe path memoises as an authoritative absence #2827
Found reviewing #2815 (#2801 item 1's class, left open in the sibling adapters). The Origin::size contract — restated by the fs adapter in #2815 — reads Ok(None) as an authoritative absence: the probe memo caches Absent, the serve gate signs NotFound, and the republish walk drops the hash. But HttpOrigin::size (crates/cache/src/origin/http.rs) returns Ok(None) when Content-Encoding is set or Content-Length is absent/unparsable, and S3Origin::size (crates/cache/src/origin/s3.rs) does the same — for objects that exist. For a compressed or length-less remote origin, every probe silently reads as absent. The http comment says the case "degrades to a whole-blob pull", which is true for the range-scope caller and false for the probe/announce caller. Fix direction: a distinct "present, size unknown" answer (or an OriginPullError) so a probe does not cache an absence for an object the origin holds.
Obsoleted by design in #2885: the 'present, size unknown' answer this issue proposes is the tri-state that PR deleted as having no use (#2867), since an origin object without a provable size is now never served or advertised. Residual: an origin whose HEAD gives no length is an unsupported configuration — the supported path is decdn origin import, which writes {H}.sizeproof. If that ever turns out wrong, the fix is a sizeproof-based presence fallback, which deserves a fresh issue.
Activity
fix(cache): size unsized holds from the store and re-probe degraded o…
fix(cache): fault on encodings fetch rejects; size relay unsized hold…
yigitdot commentedon Nov 13, 2026
Obsoleted by design in #2885: the 'present, size unknown' answer this issue proposes is the tri-state that PR deleted as having no use (#2867), since an origin object without a provable size is now never served or advertised. Residual: an origin whose HEAD gives no length is an unsupported configuration — the supported path is decdn origin import, which writes {H}.sizeproof. If that ever turns out wrong, the fix is a sizeproof-based presence fallback, which deserves a fresh issue.