forked from npm/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
outdated: optimize out an extra HTTP request
While the request to foo/latest will be less data over the wire, it's also much less likely to be cached by the registry CDN. This, it's more likely to be a trip to the origin server, which is much slower than serving out of the CDN. Additionally, we can then use that data object to check the versions hash here in outdated.js, rather than doing a full tgz download and unpack for 'cache.add'.
- Loading branch information
Showing
1 changed file
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters