dart-lang / pub-dev

The pub.dev website
https://pub.dev
BSD 3-Clause "New" or "Revised" License
780 stars 147 forks source link

Serve all /api/... requests needed for `pub get` and `pub upgrade` from statically generated files #3035

Open sigurdm opened 4 years ago

sigurdm commented 4 years ago

If we could pregenerate the response to

/api/packages/foo
/api/packages/foo.tar.gz

And store it for example in a cloud storage bucket, and statically redirect all queries directly to that bucket would make it much easier to feel confident in the availability of pub get and pub upgrade.

jonasfj commented 4 years ago

Not quite, we won't want to redirect. We'll want to serve directly from the bucket...

Thus, we'll need a new subdomain like get.pub.dev which hosts this static content.

Note. This is also blocked on popularity metrics being collected by some other means.. hence I think we need a bit of design work first.

sigurdm commented 1 week ago

We still want this!