WebF Host Caching with HttpCacheMode

VerifiedCaution

Configure and debug WebF runtime caching in Flutter using HttpCacheMode: set strategies (cache-first, network-first, offline-first), bust caches, version bundles, and clear caches with WebF.clearAllCaches. Helps when dealing with stale remote bundles, offline-first requirements, or custom cache adapter behavior.

Sby Skills Guide Bot
DevelopmentIntermediate
2/28/2026
Claude Code
#webf#caching#flutter#http-cache-mode#offline-first

Recommended for

Automated summary

This skill guides configuring and debugging WebF runtime caching in a Flutter app through HttpCacheMode, including clearing caches with WebF.clearAllCaches.

Strengths

  • Covers the four common intents: cache-first, network-first, offline-first, and "never cache in dev"
  • Detects existing cache settings via the project profile and code search
  • Uses the OpenWebF MCP docs to pick an explicit HttpCacheMode plus a cache-busting/versioning strategy
  • Includes clear cache-clearing guidance and verification steps

Limitations

  • Assumes a Flutter project using WebF with the openwebf MCP tools available
  • Does not address server-side caching or HTTP headers beyond what HttpCacheMode exposes
  • The SKILL.md only describes the workflow; the referenced reference.md, doc-queries.md and examples.md files are not included
When to use it

Use it when stale remote bundles appear in a WebF view or when you need to set offline-first or cache-busting behavior.

When not to use it

Avoid it for general Flutter or server-side caching questions that don't involve HttpCacheMode or WebF.clearAllCaches.

Security analysis

Caution
Quality score78/100

The skill is a documentation/configuration helper for Flutter WebF caching. Its instructions are benign: ask the user's caching goal, inspect project settings, consult docs, and provide clearing/verification guidance. The declared Bash/Edit/Write tools warrant a caution rating because they permit command execution and file modification, but no dangerous usage is specified.

Findings
  • •Declares Bash, Edit, and Write tools, which can execute commands and modify files; however, the SKILL.md body contains no destructive, exfiltrating, or obfuscated instructions.
How this analysis is made

Examples

Stale remote bundle
My WebF app keeps showing an old version of the remote bundle after I deploy a new one. Show me how to switch HttpCacheMode and bust the cache.
Offline-first setup
Configure my Flutter + WebF project to be offline-first so the app loads the last cached bundle when there is no network.
Clear caches during dev
I don't want any caching while developing. Show me how to set the cache mode and call WebF.clearAllCaches so every reload fetches fresh content.

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

  1. Ask what the user wants: cache-first, network-first, offline-first, or “never cache in dev”.
  2. Use project profile and code search to detect current cache settings.
  3. Use MCP docs to choose an explicit HttpCacheMode and a cache-busting/version strategy.
  4. Provide clear “how to clear caches” guidance and verification steps.

More:

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/webf-host-caching-with-httpcachemode-mm5t8cgf/download' --output '.skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf/SKILL.md.part' && mv '.skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf/SKILL.md.part' '.skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): 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

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf/SKILL.md' && test -s '.skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/openwebf-host-caching-httpcachemode' && cp -R '.skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf' '.claude/skills/openwebf-host-caching-httpcachemode'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf'

openskills read 'webf-host-caching-with-httpcachemode-mm5t8cgf'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/webf-host-caching-with-httpcachemode-mm5t8cgf/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills