diff --git a/spec.md b/spec.md index 2d50799f..16d3c42d 100644 --- a/spec.md +++ b/spec.md @@ -190,6 +190,12 @@ 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 GET request MAY also include a `Range` request header to download part of a +blob in accordance with [RFC 9110](https://datatracker.ietf.org/doc/html/rfc9110#name-range-requests). +The response code SHOULD either be `216 (Partial Content)` or `416 (Range Not Satisfiable)` +in case of an invalid range. If the registry doesn't support range requests, it +SHOULD respond with `Accept-Ranges: none`. + ##### 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: