cache

Audit and optimize Deco store caching across loader, edge, and HTML layers.

13|2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/decocms/storefront-skills --skill cache-decocms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cache
Source: https://github.com/decocms/storefront-skills/tree/main/.claude-deco/skills/cache
Command: npx skills add https://github.com/decocms/storefront-skills --skill cache-decocms

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deco Cache audits and improves caching across the three layers (loader cache, stale edge cache, and HTML page cache) to minimize latency and ensure consistent performance for storefront pages. It guides how to configure TTLs, cache keys, and HTML cache enabling, and provides debugging steps for cache-control headers.

Core Features & Use Cases

  • Layered caching strategy across loader, edge, and HTML caches to reduce round-trips and improve response times.
  • Guidance on TTLs, cacheKey design, and when to enable HTML page caching for storefront routes.
  • Use Case: auditing and tuning a product listing page to ensure cacheability and fast render times, while correctly handling user-specific scenarios.

Quick Start

Run a cache audit on a storefront page, then apply loader cache, edge cache, and HTML cache settings to reduce latency.

Frequently Asked Questions about cache

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Deco store caching to reduce storefront latency?

Configure Deco store caching by auditing and tuning loader, edge, and HTML cache layers with correct TTLs and cacheKey patterns to minimize latency for read-mostly storefront assets.

What is the best way to handle user-specific pages in a Deco storefront cache?

For user-specific scenarios in a storefront cache, apply no-store configurations to prevent caching personalized data, ensuring safe and scalable performance for dynamic checkout-related pages.

When should I enable HTML page caching for storefront routes?

Enable HTML page caching for storefront routes when serving public, read-mostly assets like product catalogs, validating page cache eligibility to ensure fast render times and reduce server round-trips.

How do I debug cache-control headers for a product listing page?

Debug cache-control headers for a product listing page by auditing cache and cacheKey configurations across loader, edge, and HTML layers to validate TTLs and ensure safe cacheability.

Does Deco edge cache support stale-while-revalidate patterns for product catalogs?

Deco edge cache supports stale cache configurations for product catalogs, utilizing layered caching strategies to reduce round-trips and improve response times for read-mostly storefront data.

Why is my Deco storefront cache not working for checkout-related pages?

Storefront cache failures for checkout-related pages often occur when user-specific scenarios lack proper no-store configurations, requiring validation of cacheKey patterns and cache-control headers to ensure dynamic data isn't cached.