deco-edge-caching

Coordinate edge, loader, and client caches for Deco storefronts on Cloudflare Workers.

5|2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/decocms/deco-start --skill deco-edge-caching
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deco-edge-caching
Source: https://github.com/decocms/deco-start/tree/main/.cursor/skills/deco-edge-caching
Command: npx skills add https://github.com/decocms/deco-start --skill deco-edge-caching

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Complete edge caching infrastructure for Deco storefronts on Cloudflare Workers, coordinating worker-entry caching, cache headers, and route defaults to improve performance and reliability.

Core Features & Use Cases

  • Edge cache: caches full HTML at the edge and uses cacheHeaders to control TTLs per profile.
  • Loader and client caches: coordinates data loading and route data with routeCacheDefaults and cacheHeaders for fast navigations.
  • Operational scenarios: deployment of worker-entry with custom overrides, purge APIs, and diagnostic headers for cache HIT/MISS.

Quick Start

Configure your Cloudflare Worker entry by wiring createDecoWorkerEntry with cacheHeaders, routeCacheDefaults, and custom URL patterns to enable edge caching for Deco storefronts.

Frequently Asked Questions about deco-edge-caching

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

FAQPage Schema
How do I configure edge caching for Deco storefronts on Cloudflare Workers?

Configure edge caching by wiring createDecoWorkerEntry with cacheHeaders, routeCacheDefaults, and custom URL patterns to cache full HTML at the edge for Deco storefronts on Cloudflare Workers.

What is multi-layer caching coordination for TanStack Start routes?

Multi-layer caching coordination synchronizes edge, loader, and client caches using routeCacheDefaults and cacheHeaders to control TTLs and ensure fast navigations across TanStack Start routes.

Can I set per-URL cache profiles for PDP, PLP, and search pages?

Yes, you can define per-URL cache profiles for PDP, PLP, search, and listing pages by applying custom URL patterns and routeCacheDefaults to manage cache behavior individually.

How do I check cache HIT or MISS status and purge edge cache?

You can check cache status using built-in diagnostic headers for cache HIT or MISS, and clear stored responses by utilizing the provided purge APIs and custom worker-entry overrides.

Does deco-edge-caching work without additional dependencies?

Yes, deco-edge-caching operates with zero dependencies, directly applying cache headers and route awareness configurations to your Cloudflare Workers deployment.