{"library":"http-cache-middleware","type":"library","category":null,"description":"http-cache-middleware is a high-performance connect-like HTTP cache middleware designed for Node.js applications. It leverages the popular `cache-manager` package, providing flexibility to integrate various storage engines like in-memory, Redis, and more. The library significantly reduces latency by enabling robust caching strategies, capable of improving response times from tens of milliseconds down to single digits. It supports custom `x-cache-timeout` and `x-cache-expire` headers for fine-grained control over cache entry and invalidation using glob patterns. Additionally, it transparently handles standard HTTP `Cache-Control` and `ETag` headers to facilitate browser-side caching and validation. The current stable version is 1.4.1, with recent updates indicating an active maintenance and development cadence focused on fixes and dependency updates, with minor cumulative releases.","language":"javascript","status":"active","version":"1.4.1","tags":["javascript","http","cache","middleware"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-cache-middleware","imports":["import createCacheMiddleware from 'http-cache-middleware'; const middleware = createCacheMiddleware();","import { caching } from 'cache-manager'; const redisCache = caching({ store: redisStore, ... });","const httpCacheMiddleware = require('http-cache-middleware')();"]},{"cmd":"yarn add http-cache-middleware","imports":[]},{"cmd":"pnpm add http-cache-middleware","imports":[]}],"homepage":null,"github":"https://github.com/jkyberneees/http-cache-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-cache-middleware","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/http-cache-middleware/compatibility"}}