cache
cache controls whether Chromium-based browsers reuse a dev user data directory between addfox dev runs. It affects only dev mode and only Chromium-family browsers.
Type and default
- Type:
boolean | undefined - Default:
true - CLI precedence:
-c/--cacheforces cache on for current run--no-cacheforces cache off for current run- If both are provided, the last flag wins
Role
- When
true(or CLI--cacheis used):- Dev mode caches a Chromium user data dir under the internal cache path, so:
- extension install state
- extension settings
- login sessions and cookies
are kept between
addfox devruns.
- Dev mode caches a Chromium user data dir under the internal cache path, so:
- When
false:- Each
addfox devrun uses a fresh temporary profile for Chromium-based browsers.
- Each
- Does not affect Firefox; Firefox profile handling is delegated to
web-ext.
Examples
Enable caching via config
One-off caching via CLI
One-off disable via CLI
CLI flags override cache in config for that run.
Related
- Dev plugin @addfox/rsbuild-plugin-extension-hmr which uses the cached profile.

