Skip to content

Why "enableGlobalCache" is false by default? #3462

Answered by arcanis
simnalamburt asked this question in Q&A
Discussion options

You must be logged in to vote

I think you found the answer, but the gist is that the offline mirror is an old Yarn feature (it was already there in 1.x) that very few people were aware of, despite its benefits. Given that Yarn has a sizeable usage amongst company-grade applications, I felt like enabling it by default would help make our users' deployments generally safer - and it can fairly easily be disabled if not needed.

What's the downside of "enableGlobalCache" option being enabled?

You rely on the npm registry for your deployments, which is known for being down semi-regularly. Every time I used to notice it was down, it was because people were pinging the @yarnpkg account; meanwhile my own builds all passed. I…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@simnalamburt
Comment options

@arcanis
Comment options

@simnalamburt
Comment options

Answer selected by simnalamburt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants