Offline behaviour
Every successful flags response is cached on disk per environment and identity (Application.persistentDataPath/flagsmith). When a request fails:
- The cached response for that identity is used (
Flags.Source == FlagSource.Cache). - With no cache, flags are empty (
FlagSource.Defaults) and every read returns your fallback.
A response that isn't a flags payload counts as a failure and is never cached: a hotel Wi-Fi login page, or a proxy's JSON error such as {"detail": "Maintenance"}. While running, FlagsmithBehaviour keeps the last good flags rather than replacing them with empty defaults.