Preparing for system design interviews?  Try bugzed.com →

cacheable-middleware

JSON →
library 1.0.0 ·javascript
verified Jun 17, 2026

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.

total hits 20
actors 6 distinct systems
last hit 18d ago human
GPTBot
4
Amazonbot
4
ByteDance
2
Script
1
Search engines
1
Humans
4

top countries 🇺🇸 United States · 🇨🇦 Canada · BD · VN · 🇸🇬 Singapore