Cache
Addfox creates a .addfox/cache directory in your project to speed up development.
What is stored in .addfox/cache
cache/build/— Rspack persistent build cache. Enabled by default, it speeds up rebuilds and dev restarts. Configure it withbuildCache.cache/browser-profile/— Chromium user-data (profile) directories. By default everyaddfox devrun starts from a fresh profile; the profile is only kept between runs when you enablekeepBrowserProfile(top-level config, per-browser override, or the--keep-browser-profileCLI flag).
The exact files can differ by platform and mode, but the goal is the same: avoid repeated cold initialization.
Why it matters
- Faster rebuilds: the persistent build cache skips recompiling unchanged modules.
- Optional profile persistence: with
keepBrowserProfileenabled, extension install state, settings, and login sessions survive acrossaddfox devruns.
When to clear cache
Clear .addfox/cache if you see:
- Unexpected browser profile behavior
- Extension load state inconsistencies
- Need for a clean-slate debugging environment
You can safely delete the directory; Addfox recreates it on next run.
Related Configuration
keepBrowserProfile/buildCache- Cache configuration

