Caching
Skill a5c-ai/babysitter/library/specializations/web-development/skills/caching
HTTP caching, service workers, cache invalidation, and CDN configuration.From its SKILL.md
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.
SKILL.md
1.2 KB, 194 tokens by cl100k_base, 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
What ships with it: 1 file
310 B alongside SKILL.md
- README.md310 B