caching

Solid

HTTP caching, service workers, cache invalidation, and CDN configuration.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
42
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill 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 ```typescript // 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 ```javascript 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

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills