Express Cache Control Freak

JSON →
library 0.1.2 ·javascript maintenance
verified Jun 7, 2026

Express middleware (v0.1.2, low activity) that adds a chainable `cacheControl` method to response objects for setting Cache-Control headers. Supports string patterns (public, private, no-cache, no-store), time strings for max-age (e.g. '1h'), and explicit option objects. Requires peer dependency express >=4.0.0. Unlike similar libraries like `express-cache-control`, it does not automatically set legacy Expires headers. Used by few projects; no recent updates.