openwebf-host-caching-httpcachemode
Configure and debug WebF runtime caching in Flutter using HttpCacheMode (stale content, offline-first, cache busting, clearing caches with WebF.clearAllCaches). Use when the user mentions HttpCacheMode, WebF.clearAllCaches, offline-first, stale remote bundles, or cache adapter behavior.
When & Why to Use This Skill
This Claude skill provides comprehensive support for configuring and debugging WebF runtime caching within Flutter environments. It assists developers in implementing various HttpCacheMode strategies, such as offline-first and stale-content handling, while providing tools for cache busting and clearing, ultimately optimizing the performance and reliability of web-integrated mobile applications.
Use Cases
- Scenario 1: Implementing an offline-first strategy for WebF components to ensure seamless user experiences in low-connectivity environments.
- Scenario 2: Troubleshooting and resolving issues related to stale remote bundles by configuring appropriate cache-busting and versioning strategies.
- Scenario 3: Optimizing development workflows by setting up 'never cache' modes to ensure real-time reflection of code changes.
- Scenario 4: Managing application storage by programmatically clearing WebF caches using WebF.clearAllCaches during maintenance or testing.
| name | openwebf-host-caching-httpcachemode |
|---|---|
| description | Configure and debug WebF runtime caching in Flutter using HttpCacheMode (stale content, offline-first, cache busting, clearing caches with WebF.clearAllCaches). Use when the user mentions HttpCacheMode, WebF.clearAllCaches, offline-first, stale remote bundles, or cache adapter behavior. |
| allowed-tools | Read, Grep, Glob, Bash, Edit, Write, mcp__openwebf__project_profile, mcp__openwebf__docs_search, mcp__openwebf__docs_get_section, mcp__openwebf__docs_related, mcp__openwebf__templates_get, mcp__openwebf__templates_render |
OpenWebF Host: Caching (HttpCacheMode)
Instructions
- Ask what the user wants: cache-first, network-first, offline-first, or “never cache in dev”.
- Use project profile and code search to detect current cache settings.
- Use MCP docs to choose an explicit
HttpCacheModeand a cache-busting/version strategy. - Provide clear “how to clear caches” guidance and verification steps.
More: