Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

enable gzip #224

Open
fengmk2 opened this issue Jan 30, 2015 · 9 comments
Open

enable gzip #224

fengmk2 opened this issue Jan 30, 2015 · 9 comments

Comments

@fengmk2
Copy link

fengmk2 commented Jan 30, 2015

https://registry.npmjs.com/npm now 1.8MB ...

gzip size only 195kb

image

@zeke
Copy link

zeke commented Jan 30, 2015

whoa

@othiym23
Copy link
Contributor

We're looking into this. @fengmk2 it makes more sense to us to put the gzip step in front of our couchapps (probably we're going to use haproxy to do that). Is that a solution that could work for you, or do you need it to be npm-registry-couchapp itself that does this?

@fengmk2
Copy link
Author

fengmk2 commented Jan 31, 2015

@othiym23 the registry.npmjs.com enable gzip is ok.
:) no need for npm-registry-couchapp itself.

@sindresorhus
Copy link

It's now 2.5 MB, but could have been 85 KB with gzip on...

@fengmk2
Copy link
Author

fengmk2 commented Nov 23, 2015

npm meta now become 3.6 MB, but npm-3.4.1.tgz itself only 2.6 MB...

@STRML
Copy link

STRML commented Dec 13, 2015

Any status on this or a project where we can help it along?

@jacques
Copy link

jacques commented Dec 14, 2015

@othiym23 you should be able to get this gzipped on Fastly using VCL.

@STRML
Copy link

STRML commented Jan 29, 2016

@othiym23 The headers seem to indicate Varnish is in front of most/all of the npm servers; couldn't gzip simply be turned on there?

I'm really surprised this has gone on this long given that it would save cpu cycles, improve install times, and save considerable bandwidth (and cost), all by tweaking a few lines of configuration.

@zeke
Copy link

zeke commented Jan 29, 2016

npm, Inc stopped all meaningful development on this app over a year ago, and they recently updated the README to make it official:

deprecation notice: as npm has scaled, the registry architecture has gradually migrated towards a complex distributed architecture, of which npm-registry-couchapp is only a small part. FOSS is an important part of npm, and over time we plan on exposing more APIs, and better documenting the existing API.

npm-registry-couchapp is still a core part of our functionality, but all new registry features are now added to the micro-services that now make up npm. For this reason, we will not be accepting any pull requests, or making any changes to this codebase going forward.

The new registry that powers npmjs.com is closed-source and inaccessible to the outside world. For more details on that sad fact, see https://github.com/npm/newww/issues/761

If you wish to chime in with your wishes for an imaginary new API, see https://github.com/npm/public-api

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants