cacheable-response
JSON →An HTTP-compliant route path middleware for serving cached responses with invalidation for Node.js. Version 2.10.8 supports Node >=12 and is actively maintained (frequent releases). It provides a framework-agnostic caching layer for SSR, with built-in LRU cache, automatic TTL-based invalidation, and stale-while-revalidate support. Unlike simple in-memory caches, it integrates cache status headers (MISS, HIT, EXPIRED, BYPASS, STALE) and works with any HTTP server framework. Key differentiators: focus on SSR caching, auto-invalidation, and easy integration with Express, Fastify, or raw http.
Resources
packagecacheable-response ↗
API endpoints
full doc /v1/registry/cacheable-response