Skip to content

Commit

Permalink
Add support for content range requests when getting blobs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rchincha committed May 31, 2024
1 parent 8a871c8 commit 9d4c4a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ If present, the value of this header MUST be a digest matching that of the respo

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

A registry SHOULD support the `Range` request header in accordance with [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-range-requests).

##### Checking if content exists in the registry

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

0 comments on commit 9d4c4a9

Please sign in to comment.