DEV Community

Discussion on: GitLab CI: Cache and Artifacts explained by example

Collapse
 
elmuerte profile image
Michiel Hendriks

Instead of caching node_modules, consider caching node's caching directory instead.
The difference is caching downloaded tar.gz files instead of thousands of small files. Despite gitlab's efforts, their caching mechanism sucks big time for for a large amount of small files.

Collapse
 
onkeltem profile image
Artiom Neganov

Sorry, what do you mean under "node's caching directory"? Which one is that?
And what tar.gz files do you mean?