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 ↓57% vs prev 7d
total hits 22
actors 7 distinct systems
last hit 3d ago human
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇮🇹 Italy
Resources
API endpoints
full doc /v1/registry/cacheable-middleware
compatibility /v1/registry/cacheable-middleware/compatibility