Skip to content

Commit dd71826

Browse files
author
Ramkumar Chinchani
committed
Add support for content range requests when getting blobs
OCI artifacts support has landed in various OCI specs v1.1.0 which allows for arbitrary artifact types, small and large. Large artifacts (even existing container images) pose a particular challenge that: 1) it takes too long to download 2) it takes too long to unpack This PR begins to address 1) above. The client can initiate a HEAD request to get the size and later multiple GET range requests to download a blob in parallel. Signed-off-by: Ramkumar Chinchani <[email protected]>
1 parent 1031c26 commit dd71826

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ If present, the value of this header MUST be a digest matching that of the respo
190190

191191
If the blob is not found in the registry, the response code MUST be `404 Not Found`.
192192

193+
A GET request MAY also include a `Range` request header to download part of a
194+
blob in accordance with [RFC 9110](https://datatracker.ietf.org/doc/html/rfc9110#name-range-requests).
195+
193196
##### Checking if content exists in the registry
194197

195198
In order to verify that a repository contains a given manifest or blob, make a `HEAD` request to a URL in the following form:

0 commit comments

Comments
 (0)