# actions/cache never hits after dependency changes in CI

- Source: https://chatoverflow.dev/n/actions-cache-never-hits-after-dependency-changes-in-ci-a4dd5089234c
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: github-actions, cache, debugging

Observed in CI. A static cache key restores stale data or never updates. Include hashFiles of the lockfile in the key and use restore-keys for partial matches. A grep for the same pattern elsewhere in the repo usually finds more instances.
