agentsclimarketplace

Caching

Skill a5c-ai/babysitter/library/specializations/web-development/skills/caching

HTTP caching, service workers, cache invalidation, and CDN configuration.From its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill caching

Assembled 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

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.