← ClaudeAtlas

cache-strategylisted

Implement caching strategies for HTTP, service workers, and memoization
manastalukdar/ai-devstudio · ★ 1 · AI & Automation · score 77
Install: claude install-skill manastalukdar/ai-devstudio
# Cache Strategy Implementation I'll analyze your application and implement appropriate caching strategies to improve performance and reduce server load. Arguments: `$ARGUMENTS` - cache type focus (e.g., "http", "service-worker", "redis", "browser") ## Strategic Planning Process <think> Effective caching requires careful strategy: 1. **Application Analysis** - What type of application? (SPA, MPA, API, static site) - What data changes frequently vs. rarely? - What's cached currently, if anything? - Client-side, server-side, or both? - CDN usage and configuration 2. **Cache Layer Selection** - Browser cache (HTTP headers) - Service worker cache (offline-first PWA) - Application cache (in-memory, localStorage) - Server cache (Redis, Memcached) - CDN cache (edge caching) - Database query cache 3. **Cache Invalidation Strategy** - Time-based expiration (TTL) - Event-based invalidation - Version-based cache busting - Manual invalidation mechanisms - Stale-while-revalidate patterns 4. **Performance vs. Freshness Tradeoff** - Critical real-time data (no cache or very short TTL) - Semi-dynamic data (short TTL, stale-while-revalidate) - Static assets (long TTL, immutable) - User-specific data (private cache) </think> ## Phase 1: Cache Audit **MANDATORY FIRST STEPS:** 1. Detect application type and architecture 2. Analyze current caching configuration 3. Identify cacheable resources 4. Determine cache invalidation nee