Docker and CI/CD · Middle · Question 75 of 75
What does restore-keys add to a cache step?
- 1Encryption keys used to protect the cache
- ✓Correct answer: Fallback prefixes used when the exact key misses
- 3Keys that must be removed from the cache first
Explanation
With restore-keys: npm-${{ runner.os }}-, a lockfile change still restores the most recent similar cache, so only new packages are downloaded.