/icetea-skills:http-cachingfrom icetea-skills
Implements and troubleshoots HTTP caching headers, ETags, Cache-Control directives, CDN strategies, and API response caching. Includes a decision tree for choosing cache policies.
Ships in icetea-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
When you need to optimize network performance or control how browsers and CDNs handle your responses, HTTP caching gives you precise control over freshness, revalidation, and storage. This skill helps when you're actively implementing or troubleshooting caching — not specifying caching headers is often fine for simple cases.
Prefer retrieval from official docs over pre-trained knowledge for HTTP caching tasks.
| Resource | URL |
|---|---|
| MDN HTTP Caching Guide | https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching |
| MDN Cache-Control Reference | https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control |
| web.dev HTTP Cache | https://web.dev/articles/http-cache |
Fetch the relevant doc page when implementing caching features.
digraph cache_decision {
rankdir=TB;
node [shape=diamond];
sensitive [label="Contains secrets/tokens?"];
userspecific [label="User-specific content?"];
pub_urlchanges [label="URL changes on update?"];
priv_urlchanges [label="URL changes on update?"];
pub_needsfresh [label="Must always be fresh?"];
priv_needsfresh [label="Must always be fresh?"];
node [shape=box];
nostore [label="no-store"];
publicimm [label="public, max-age=31536000, immutable"];
privateimm [label="private, max-age=31536000, immutable"];
publicnc [label="no-cache + ETag\n(or s-maxage + SWR for CDN)"];
privatenc [label="private, no-cache + ETag"];
publicttl [label="public, max-age=N\n(+ s-maxage for CDN)"];
privatettl [label="private, max-age=N"];
sensitive -> nostore [label="yes"];
sensitive -> userspecific [label="no"];
userspecific -> pub_urlchanges [label="no (public)"];
userspecific -> priv_urlchanges [label="yes (private)"];
pub_urlchanges -> publicimm [label="yes"];
pub_urlchanges -> pub_needsfresh [label="no"];
priv_urlchanges -> privateimm [label="yes"];
priv_urlchanges -> priv_needsfresh [label="no"];
pub_needsfresh -> publicnc [label="yes"];
pub_needsfresh -> publicttl [label="no"];
priv_needsfresh -> privatenc [label="yes"];
priv_needsfresh -> privatettl [label="no"];
}
| Content Type | Recommended Headers |
|---|---|
| Versioned static assets | public, max-age=31536000, immutable |
| HTML / dynamic pages | no-cache + ETag (always revalidate, 304 = headers-only) |
| Public API responses | public, s-maxage=3600, max-age=60 + ETag |
| Authenticated API | private, no-cache + ETag |
| Tolerates staleness (public) | public, max-age=N (+ s-maxage for CDN split TTLs) |
| Never cache (secrets/tokens) | no-store |
| ISR (framework SSG) | public, s-maxage=3600, stale-while-revalidate=86400 |
Pick ONE strategy per resource. Do not combine contradictory directives (see gotchas).
ETag: "abc123" (or Last-Modified)If-None-Match: "abc123"304 Not Modified (headers only, no body)Key insight: no-cache + ETag is efficient, not pessimistic. 304 responses transfer only headers (~200 bytes), saving full response bandwidth on every revalidation.
Set-Cookie — most CDNs strip or refuse to cache these; use private or no-storeno-store rather than complex Vary combinationsService Workers + Cache Storage API offer finer-grained control (offline-first, cache-then-network strategies, programmatic cache management). Out of scope here but the natural next step for advanced caching needs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
http-caching, cache-control, etag, cdn-caching, cache-strategy
8 skills in this plugin
/agents-sdkBuild AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks./cloudflareUse when working with Cloudflare platform - Workers, Pages, Queues, KV, D1, R2, Workers AI, Vectorize, Hyperdrive, Containers, Workflows. Triggers on Cloudflare development, deployment, or configuration tasks./durable-objectsUse when working with Cloudflare Durable Objects - reviewing, creating, or modifying DO code. Triggers on: extends DurableObject, DurableObjectState, ctx.storage, blockConcurrencyWhile, alarms, WebSockets, RPC methods, SQLite storage, stateful coordination.Other plugins' skills for the same job
Generated from the plugin's indexed repository (icetea-ai/skills) — no native marketplace selected
npx claudepluginhub p/icetea-ai-icetea-skills