deco-vtex-fetch-cache
Installation
SKILL.md
VTEX Fetch Cache (SWR In-Memory)
Server-side SWR cache for all VTEX GET API responses. Ported from deco-cx/deco runtime/fetch/fetchCache.ts and adapted for @decocms/apps on TanStack Start.
When to Use This Skill
- Adding SWR caching to new VTEX API calls
- Understanding why a VTEX response is served stale
- Debugging cache hit/miss behavior
- Tuning TTL for specific endpoints
- Understanding the relationship between
fetchWithCache,vtexCachedFetch, andcreateCachedLoader