cacheable-middleware
JSON →Middleware for Express/Connect to set HTTP cache headers (Cache-Control, Expires) on responses. Version 1.0.0 (latest) requires Node >=6. Methods: res.cacheFor(milliseconds) or res.cacheFor(amount, unit) using Moment.js duration syntax. Can also set default cache duration for all routes in a middleware stack. Lightweight, no dependencies beyond Node built-ins. Differs from express-cache-headers by offering both per-response and global configuration.
Traffic · last 30 days stale · no recent hits
total hits 20
actors 6 distinct systems
last hit 18d ago human
top countries 🇺🇸 United States · 🇨🇦 Canada · BD · VN · 🇸🇬 Singapore
Resources
API endpoints
full doc /v1/registry/cacheable-middleware
compatibility /v1/registry/cacheable-middleware/compatibility