Frontend Browser Caching
Use when the user asks about Cache-Control headers, ETag, immutable hashed assets, cache busting, stale-while-revalidate, bfcache or service worker cache strategies for page loads. Produces browser caching headers and asset versioning rules. Not for installable offline apps (use frontend-pwa) or CDN edge config (use cdn-edge).
Install
npx skills add j4flmao/agent-skills --skill frontend-browser-cachinggit clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/frontend/universal/browser-caching ~/.claude/skills/frontend-browser-cachingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Browser Caching
## Purpose
Optimize load performance via HTTP cache headers, service worker caching, and stale-while-revalidate. Minimize network round-trips while serving fresh content. First load under 2s, repeat loads under 500ms. Full offline support for static assets.
## Agent Protocol
### Trigger
Exact user phrases: "browser caching", "cache headers", "service worker", "SW", "stale-while-revalidate", "SWR", "cache strategy", "Cache-Control", "ETag", "cache busting", "offline caching".
### Input Context
Before activating, verify:
- Whether the focus is HTTP cache headers, service worker, or both.
- The build tool (Vite, Webpack, Next.js) for cache-busting config.
### Output Artifact
No file output. Produces caching strategy, header configs, or service worker code as text.
### Response Format
```
Resource: {type}
Strategy: {cache strategy}
Config: {code block}
```
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output.
### Completion Criteria
- [ ] Static assets use `Cache-Control: public, max-age=31536000, immutable`.
- [ ] HTML uses `Cache-Control: no-cache` for freshness validation.
- [ ] API responses use appropriate `Cache-Control` or `ETag`.
- [ ] Service worker registers and caches static assets on install.
- [ ] Stale-while-revalidate pattern for data fetching.
- [ ] Cache-busting via content hashes in filenames.
### Max Response Length
4096 tokens.
## Component Architecture / Decision TreesDetails
- Skill name
frontend-browser-caching- Repository
- j4flmao/agent-skills
- Path
skills/frontend/universal/browser-caching/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the Frontend Browser Caching skill do?
Use when the user asks about Cache-Control headers, ETag, immutable hashed assets, cache busting, stale-while-revalidate, bfcache or service worker cache strategies for page loads. Produces browser caching headers and asset versioning rules. Not for installable offline apps (use frontend-pwa) or CDN edge config (use cdn-edge).
How do I install the Frontend Browser Caching skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill frontend-browser-caching. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Frontend Browser Caching popular?
It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.
Related skills
Agent Observability
45j4flmao/agent-skills
Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).
AI Agent Architectures
45j4flmao/agent-skills
Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).
AI Agent Core Loop
45j4flmao/agent-skills
Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).
Frontend Bundler Tools
45j4flmao/agent-skills
Use when the user asks about Vite, webpack, Rspack, Turbopack, Rolldown, esbuild, bundle config, tree shaking, code splitting, chunking, build speed or migrating webpack to Vite. Produces bundler configuration and build-optimization steps. Not for Core Web Vitals field work (use web-performance) or CI pipelines (use cicd-pipeline).
Frontend Authentication
45j4flmao/agent-skills
Use when the user asks to implement JWT login with refresh tokens in the browser, OAuth2/OIDC with PKCE, protected routes and route guards, token storage, sessions, logout, SSO, passkeys or MFA screens. Produces secure client-side auth flows for any framework and provider. Not for server-side token validation and auth APIs (use backend-auth-patterns).
Frontend CSS Strategy
45j4flmao/agent-skills
Use when the user asks which styling approach to use: CSS Modules vs CSS-in-JS vs Tailwind, styled-components, Emotion, vanilla-extract, BEM, Sass, PostCSS, cascade layers or CSS architecture. Produces a styling decision with folder and naming conventions. Not for Tailwind configuration (use frontend-tailwind-css) or dark mode (use frontend-theming).
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.