Express/Connect middleware for setting cache headers based on URL patterns using glob matching. Current version is 2.0.0, released in 2013 with infrequent updates. It allows mapping URL glob patterns to cache durations (in seconds), booleans for no caching, or custom Cache-Control header strings. Differentiators: simple glob-based configuration, minimal overhead; however, it is outdated and may have security issues.
npm install cache-controlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets cache headers for different URL patterns using globs, with values in seconds, boolean, or custom Cache-Control string.
Use false to disable caching; for custom headers, pass a string.
Order options object from most specific to least specific.
Run 'npm install cache-control --save' and use var cache = require('cache-control');No dependency data recorded yet.