package
Express/Connect middleware to set url cache options with globs
npm install cache-controlGitHub-flavored package documentation.
Across all versions, last 30 days.
3,338 in 30 days
Runtime metadata.
Tagged topics.
Express/Connect middleware to set url cache options with globs
npm install cache-control --savevar express = require('express');
var cache = require('cache-control');
var app = express();
app.use(cache({
'/index.html': 1000,
'/none/**/*.html': false,
'/private.html': 'private, max-age=300',
'/**': 500 // Default to caching all items for 500
}));
app.listen(3000, function () {
})options - an object contain globs as the keys and caching declarations as the valuesnpm install
npm testmbleigh
michael@intridea.com
Estimated unpacked size across 18 packages.
2.4 MB
Includes dependencies.
8 direct · 1 outdated
^0.1.6
0.1.6
^1.0.0
1.0.2
^1.0.0
1.0.0
^1.0.0
1.1.0
^1.0.0
1.0.3