Caching
Skill a5c-ai/babysitter/library/specializations/web-development/skills/caching
Babysitter enforces obedience on agentic workforces and enables them to manage extremely complex tasks and workflows through deterministic, hallucination-free self-orchestration
npx -y skills add a5c-ai/babysitter --skill cachingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
HTTP caching, service workers, cache invalidation, and CDN configuration.
SKILL.md
1.2 KB, as published. Nobody here has run it
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