Skip to content

Commit 654a2fd

Browse files
committed
Converting the recommended limit to an implementers note
Signed-off-by: Brandon Mitchell <[email protected]>
1 parent 2243be7 commit 654a2fd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spec.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,13 @@ The tags MUST be in lexical order.
548548

549549
When using the `last` query parameter, the `n` parameter is OPTIONAL.
550550

551-
The registry SHOULD support at least `n=1000` tags in a single response.
552-
The client SHOULD avoid requesting more than `n=1000` tags in a single request.
553551
If the registry is unable to return all tags requested by the client, the registry MUST return a `413 Content Too Large` with `TAG_LIMIT_EXCEEDED` error <sup>[code-15](#error-codes)</sup> and include the header `OCI-Tag-Limit: <limit>`, where `<limit>` is the maximum tags per request supported by the registry.
554552

553+
*Implementers note:*
554+
Most registries support at least 1000 tags per request, but limits have been seen as low as 50 tags per request.
555+
To maximize the tags per page, a request without setting `n` can be used, which should either return the full list of tags, or an error with the `OCI-Tag-Limit` header indicating the limit.
556+
When available, clients should prefer the `Link` header over using the `last` parameter for pagination.
557+
555558
##### Listing Referrers
556559

557560
*Note: this feature was added in distibution-spec 1.1.

0 commit comments

Comments
 (0)