Deco Vtex Fetch Cache

SWR in-memory fetch cache for VTEX API responses in @decocms/apps. Ported from deco-cx/deco runtime/fetch/fetchCache.ts. Provides in-flight deduplication + stale-while-revalidate for all VTEX GET requests. Covers fetchWithCache utility, vtexCachedFetch client function, LRU eviction, TTL by HTTP status, integration with intelligentSearch and cross-selling calls. Use when adding caching to VTEX API calls, debugging stale responses, or understanding how the fetch cache layer works.

decocms 443bd9d 7.7 KB Updated

File contents

decocms/blocks/tree/main/.cursor/skills/deco-vtex-fetch-cache commit 443bd9df98

Frequently asked questions

npx skillmds@latest add decocms/deco-vtex-fetch-cache