What problem does it solve?
Slow storefront pages and poor CDN hit rates caused by unoptimized cache headers, personalized content being embedded in cached HTML, and lack of event-driven invalidation for product and price changes. This Skill provides a layered caching strategy that balances CDN edge caching, application-level Redis caching, and targeted cache purges so anonymous users see fast pages while personalized data is hydrated client-side.
Core Features & Use Cases
- Multi-layer caching guidance covering CDN edge, reverse-proxy (Varnish), and Redis application caches for product, collection, and asset content.
- Platform-specific recommendations for Shopify, WooCommerce, BigCommerce, and custom/headless storefronts, including what each platform manages and what the developer must control.
- Concrete HTTP header patterns (Cache-Control with stale-while-revalidate, surrogate-key tagging) and cache-aside Redis patterns with fire-and-forget writes and setex TTLs.
- Event-driven invalidation workflows that purge related product and collection caches on price changes and only purge on inventory stock-status transitions.
- Operational best practices: strip marketing query params, avoid Vary: Cookie for cacheable pages, monitor CDN hit rate, and set Redis memory policies to prevent unbounded growth.
Quick Start
Audit my storefront and produce cache-control header rules, surrogate-key tagging strategy, and Redis cache-aside patterns for product, collection, asset, and personalization endpoints.