Updated: 2025-09-16 Type: Reference
For endpoints that serve immutable, digest‑addressed blobs (e.g., /admin/models/by-hash/{sha256}
):
ETag: "{sha256}"
(quoted, strong)Last-Modified: <RFC 2822>
Accept-Ranges: bytes
Cache-Control: public, max-age=31536000, immutable
If-None-Match
→ 304 Not Modified
when it matches the ETagIf-Modified-Since
→ 304 Not Modified
when not newer than Last‑ModifiedRange: bytes=start-end | start- | -suffix
206 Partial Content
with Content-Range: bytes start-end/total
416 Range Not Satisfiable
with Content-Range: bytes */total
If-None-Match
/ If-Modified-Since
Examples:
# HEAD with ETag validator; 304 if unchanged
curl -I \
-H 'If-None-Match: "<sha256>"' \
http://localhost:8091/admin/models/by-hash/<sha256>
# GET a slice (first 1KB)
curl -H 'Range: bytes=0-1023' \
http://localhost:8091/admin/models/by-hash/<sha256>