Skip to content

Document ETag conditional requests in repository specification - #4906

Open
sigurdm wants to merge 5 commits into
dart-lang:mainfrom
sigurdm:etag-spec
Open

Document ETag conditional requests in repository specification#4906
sigurdm wants to merge 5 commits into
dart-lang:mainfrom
sigurdm:etag-spec

Conversation

@sigurdm

@sigurdm sigurdm commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents support for HTTP conditional requests (If-None-Match with ETag) and 304 Not Modified responses for the package versions listing endpoint (GET <hosted-url>/api/packages/<package>) in doc/repository-spec-v2.md.

This reflects the client functionality implemented in #4890.

Details

  • Documents the optional If-None-Match request header and ETag response header for <hosted-url>/api/packages/<package>.
  • Notes that package repositories may optionally support standard HTTP conditional requests using ETags (If-None-Match / 304 Not Modified) to validate cached version listings.

@sigurdm
sigurdm requested a review from jonasfj September 7, 2026 09:38
Comment thread doc/repository-spec-v2.md Outdated
Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants