nuxt-ssr-cache v1.5.2 is a cache middleware for Nuxt.js server-side rendering. It supports multiple cache stores: in-memory, Redis, Memcached, and layered multi-cache. The package allows prefixing cache keys by host, custom key functions, and version-based automatic cache purging on deployment. It is designed for Nuxt.js applications needing to reduce SSR load by caching rendered pages. The library has been stable since its last release but is not frequently updated. It relies on the Nuxt module system and optional peer dependencies for Redis and Memcached stores.
npm install nuxt-ssr-cacheVerified import paths — ran on the pinned version, not inferred.
Configure nuxt-ssr-cache as a Nuxt module with in-memory cache for root and about pages, 60-second TTL.
If you need to use `useHostPrefix` or `pages`, do not define the `key` function.
Ensure `stores` array is provided with at least one store configuration.
Consider using newer Redis/Memcached cache stores or evaluate alternative cache modules for Nuxt.
Update store configuration to object form: `store: { type: 'memory', ... }`.Install the Redis store package: `npm install cache-manager-redis`
Change to object format: `store: { type: 'memory', max: 100, ttl: 60 }`Ensure `pages` is an array of strings (path prefixes) or RegExp objects.