Skip to content

Caching

How do I cache Playwright browsers?

Quick answer

Cache ~/.cache/ms-playwright keyed on the Playwright version from your lockfile.

The detail that matters

Key on the version, not the lockfile hash — otherwise an unrelated dependency bump re-downloads every browser.

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.