Skip to content

Caching

Cache key

Quick answer

A cache key is the string that identifies a cache entry, typically built from a hash of the lockfiles that determine the cached content.

A cache key is the string that identifies a cache entry, typically built from a hash of the lockfiles that determine the cached content.

Why it matters

Keys that include a commit SHA never hit. Keys that omit the lockfile serve stale content. The correct key hashes exactly the inputs that change the output, and nothing else.

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.