Closed 3cp closed 4 years ago
Another option is to cache raw npm registry result in browser side. Set a TTL on those cache.
Need UI feature to allow user to purge all npm registry cache. So that user can get latest package version info.
Moved to simple solution, at least for now, cache deps resolving result in client side for a day.
https://registry.npmjs.cf is bit slow.
Move to backend also means there are more choices at nodejs side, for example https://github.com/pnpm/pnpm/tree/master/packages/resolve-dependencies#readme
Then CloudFlare can cache resolved result (turn on sort query params) for few minutes to
TBD cache the raw result from registry.npmjs.com too?