http-cache
Generates an HTTP caching layer with Cache-Control parsing, ETag/conditional requests, and offline fallback. Use when user wants to add response caching, offline support, or reduce API calls.
npx skills add rshankras/claude-code-apple-skills --skill http-cache --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# HTTP Cache Generator Generate a production HTTP caching layer that integrates with your existing networking code. Supports Cache-Control directives, ETag/Last-Modified conditional requests, stale-while-revalidate, and offline fallback. ## When This Skill Activates Use this skill when the user: - Asks to "add HTTP caching" or "cache API responses" - Wants "offline support" or "offline fallback" - Mentions "reduce API calls" or "cache network responses" - Asks about "ETag" or "conditional requests" or "304 Not Modified" - Wants "stale-while-revalidate" behavior ## Pre-Generation Checks ### 1. Project Context Detection - [ ] Check Swift version (requires Swift 5.9+) - [ ] Check deployment target (iOS 16+ / macOS 13+) - [ ] Search for existing caching implementations - [ ] Identify source file locations ### 2. Networking Layer Detection Search for existing networking code: ``` Glob: **/*API*.swift, **/*Client*.swift, **/*Network*.swift Grep: "APIClient" or "URLSession" or "HTTPURLResponse" ``` If `networking-layer` generator was used, detect the `APIClient` protocol and generate a decorator that wraps it. ### 3. Conflict Detection Search for existing caching: ``` Glob: **/*Cache*.swi
- When This Skill Activates
- Pre-Generation Checks
- 1. Project Context Detection
- 2. Networking Layer Detection
- 3. Conflict Detection
- Configuration Questions
- Generation Process
- Step 1: Read Templates
- Step 2: Create Core Files
- Step 3: Create Integration Files
- Step 4: Determine File Location
- Output Format
- Files Created
- Integration Steps
What does the http-cache skill do?
Generates an HTTP caching layer with Cache-Control parsing, ETag/conditional requests, and offline fallback. Use when user wants to add response caching, offline support, or reduce API calls.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill http-cache --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
