Babysitter caching
HTTP caching, service workers, cache invalidation, and CDN configuration.
install
source · Clone the upstream repo
git clone https://github.com/a5c-ai/babysitter
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a5c-ai/babysitter "$T" && mkdir -p ~/.claude/skills && cp -r "$T/library/specializations/web-development/skills/caching" ~/.claude/skills/a5c-ai-babysitter-caching && rm -rf "$T"
manifest:
library/specializations/web-development/skills/caching/SKILL.mdsource content
Caching Skill
Expert assistance for caching strategies.
Capabilities
- Configure HTTP caching
- Implement service workers
- Set up CDN caching
- Handle cache invalidation
- Design caching architecture
HTTP Cache Headers
// Immutable assets headers['Cache-Control'] = 'public, max-age=31536000, immutable'; // Dynamic content headers['Cache-Control'] = 'private, no-cache, must-revalidate'; // Stale-while-revalidate headers['Cache-Control'] = 'public, max-age=60, stale-while-revalidate=300';
Service Worker
self.addEventListener('fetch', (event) => { event.respondWith( caches.match(event.request).then((response) => { return response || fetch(event.request); }) ); });
Target Processes
- caching-strategy
- performance-optimization
- pwa-development