openwebf-host-caching-httpcachemode
使用HttpCacheMode配置和调试Flutter中的WebF运行时缓存(陈旧内容、离线优先、缓存清除、使用WebF.clearAllCaches清除缓存)。当用户提及HttpCacheMode、WebF.clearAllCaches、离线优先、陈旧远程包或缓存适配器行为时使用。
📖 中文导读:使用HttpCacheMode配置和调试Flutter中的WebF运行时缓存(陈旧内容、离线优先、缓存清除、使用WebF.clearAllCaches清除缓存)。当用户提及HttpCacheMode、WebF.clearAllCaches、离线优先、陈旧远程包或缓存适配器行为时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
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: