Skip to content

Caching

Cache scope

Quick answer

Cache scope defines which workflows, branches and repositories may read a given cache entry.

Cache scope defines which workflows, branches and repositories may read a given cache entry.

Why it matters

GitHub scopes caches to a branch and its base, so a feature branch can read main's cache but not another feature branch's. That default surprises people debugging a cold cache.

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.