Docker and CI/CD · Middle · Question 75 of 75

What does restore-keys add to a cache step?

Explanation

With restore-keys: npm-${{ runner.os }}-, a lockfile change still restores the most recent similar cache, so only new packages are downloaded.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 75

Test yourself

Take the Docker and CI/CD · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz