{"_id":"cache-control","_rev":"1745752","name":"cache-control","description":"Express/Connect middleware to set url cache options with globs","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"},{"name":"mbleigh","email":"michael@intridea.com"}],"time":{"modified":"2026-11-19T14:30:30.000Z","created":"2014-07-18T00:03:22.238Z","2.0.0":"2016-12-06T14:02:34.525Z","1.0.3":"2014-11-19T16:31:38.588Z","1.0.2":"2014-11-18T23:11:19.758Z","1.0.1":"2014-11-18T21:47:16.540Z","1.0.0":"2014-09-18T21:31:53.069Z","0.1.1":"2014-07-25T20:49:12.007Z","0.1.0":"2014-07-18T00:03:22.238Z"},"users":{"broxmgs":true,"hugojosefson":true},"author":{"name":"Divshot"},"repository":{"type":"git","url":"git+ssh://git@github.com/divshot/cache-control.git"},"versions":{"2.0.0":{"name":"cache-control","version":"2.0.0","description":"Express/Connect middleware to set url cache options with globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"git+ssh://git@github.com/divshot/cache-control.git"},"keywords":["divshot","superstatic","caching","buster"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/cache-control/issues"},"homepage":"https://github.com/divshot/cache-control","devDependencies":{"async":"^0.9.0","connect":"^3.0.2","mocha":"^2.0.1","supertest":"^0.15.0"},"dependencies":{"cache-header":"^1.0.0","fast-url-parser":"^1.0.6-0","glob-slasher":"^1.0.1","globject":"^1.0.0","is-success":"^1.0.0","lodash.isnumber":"^2.4.1","on-headers":"^1.0.0","regular":"^0.1.6"},"gitHead":"9df6ef32ad898b934335406f0fdfce59c4e0f212","_id":"cache-control@2.0.0","_shasum":"41fb15269eb0e9ddf3cca52578d35ce40b65f3d2","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.1.0","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"shasum":"41fb15269eb0e9ddf3cca52578d35ce40b65f3d2","tarball":"http://registry-npm.ywwl.com/cache-control/download/cache-control-2.0.0.tgz","integrity":"sha512-uzo8TNxv9GehFzbykHXw7PGmSIKdXRbxq/RwFCSzMBRyDDi7scEUnpjV/dnnVB+09xPQ9+Wn5bhGiQ3rAKILWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfPAig/Z0d/2HtO5hfvAYMrXi9YlX05wXZzjYvUopaJAiEA0BOFtGYY0xBt9ETsrZfo6IOLY3I7vbFk4O/0MVaQA1k="}],"size":2575,"noattachment":false,"key":"/cache-control/-/cache-control-2.0.0.tgz"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"},{"name":"mbleigh","email":"michael@intridea.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cache-control-2.0.0.tgz_1481032952809_0.48785669496282935"},"publish_time":1481032954525,"_cnpm_publish_time":1481032954525},"1.0.3":{"name":"cache-control","version":"1.0.3","description":"Express/Connect middleware to set url cache options with globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"git@github.com:divshot/cache-control.git"},"keywords":["divshot","superstatic","caching","buster"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/cache-control/issues"},"homepage":"https://github.com/divshot/cache-control","devDependencies":{"async":"^0.9.0","connect":"^3.0.2","mocha":"^2.0.1","supertest":"^0.15.0"},"dependencies":{"cache-header":"^1.0.0","fast-url-parser":"^1.0.6-0","glob-slasher":"^1.0.1","globject":"^1.0.0","lodash.isnumber":"^2.4.1","on-headers":"^1.0.0","regular":"^0.1.6"},"gitHead":"3d54b871b41b79fca68bf014e5f95d6909f4a15d","_id":"cache-control@1.0.3","_shasum":"19eb2dc86b0c9ae5f30ea34b761823a0d688a7ea","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.31","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"19eb2dc86b0c9ae5f30ea34b761823a0d688a7ea","tarball":"http://registry-npm.ywwl.com/cache-control/download/cache-control-1.0.3.tgz","integrity":"sha512-BuF5wV+FMFJHomHrovNkz9WHmpRuKInY6lKBcmIM8p2oiknVpDYM3GydKAn0qkTzgC4zskjquW561R8rvuwqZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwaOhDlG80DCytM0GuxwLiBQRx5LRUJCy2KGh6EXtIuAIhAPYtNc7CHbV/PqRZNApNPkBor4gFZUKB147Gnd9q++mo"}],"size":2601,"noattachment":false,"key":"/cache-control/-/cache-control-1.0.3.tgz"},"publish_time":1416414698588,"_cnpm_publish_time":1416414698588},"1.0.2":{"name":"cache-control","version":"1.0.2","description":"Express/Connect middleware to set url cache options with globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"git@github.com:divshot/cache-control.git"},"keywords":["divshot","superstatic","caching","buster"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/cache-control/issues"},"homepage":"https://github.com/divshot/cache-control","devDependencies":{"async":"^0.9.0","connect":"^3.0.2","mocha":"^2.0.1","supertest":"^0.15.0"},"dependencies":{"fast-url-parser":"^1.0.6-0","glob-slasher":"^1.0.1","globject":"^1.0.0","lodash.isnumber":"^2.4.1","on-headers":"^1.0.0","regular":"^0.1.6"},"gitHead":"95738637e727a1c652a75de2b13a2b8fe31d1fe3","_id":"cache-control@1.0.2","_shasum":"5c9fe081f28d556892a644a32c4650da0a77b124","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.31","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"5c9fe081f28d556892a644a32c4650da0a77b124","tarball":"http://registry-npm.ywwl.com/cache-control/download/cache-control-1.0.2.tgz","integrity":"sha512-tXMeMdeVJzMPGCNXkR3OqqcfZMGEeebp3xIu0Et+7fvpGCY6mcfjDEl6x8HtbAw29TYwAmVEaPmjn7A9vBctgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHIxcDDstfvNvadoU1ZbotjPqfL+bUsZTNmWVaJPW7VzAiEAj1Hz1iq8psnaDSTXPbF02nHPEdb+hm6nw7n7bcw3Kkw="}],"size":2687,"noattachment":false,"key":"/cache-control/-/cache-control-1.0.2.tgz"},"publish_time":1416352279758,"_cnpm_publish_time":1416352279758},"1.0.1":{"name":"cache-control","version":"1.0.1","description":"Express/Connect middleware to set url cache options with globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"git@github.com:divshot/cache-control.git"},"keywords":["divshot","superstatic","caching","buster"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/cache-control/issues"},"homepage":"https://github.com/divshot/cache-control","devDependencies":{"async":"^0.9.0","connect":"^3.0.2","mocha":"^2.0.1","supertest":"^0.15.0"},"dependencies":{"fast-url-parser":"^1.0.6-0","glob-slash":"^1.0.0","lodash.isnumber":"^2.4.1","minimatch":"^1.0.0","on-headers":"^1.0.0","regular":"^0.1.6"},"gitHead":"9891aa5c62d85112ce6ff6dc8c587331153f07a9","_id":"cache-control@1.0.1","_shasum":"70391d713c041e8ff22f57e9f7bbd3c585b04748","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.31","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"70391d713c041e8ff22f57e9f7bbd3c585b04748","tarball":"http://registry-npm.ywwl.com/cache-control/download/cache-control-1.0.1.tgz","integrity":"sha512-q2FFaAOIDumb3OdXWdZ2m+ZjcPelws33gjak5J8lw2YJLBUB0hMc6ZQbXC6mNR+95JhdfBHYfMiJVRAxbBbpLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmJDsD9wuzHQANBEHC8haJBFyY7SQWvfaTwFZ454+DaAiEAwMgBnBL4w/qCpSyl33Hz4Nm+RA2ZUoBATK8t7AeynX8="}],"size":2757,"noattachment":false,"key":"/cache-control/-/cache-control-1.0.1.tgz"},"publish_time":1416347236540,"_cnpm_publish_time":1416347236540},"1.0.0":{"name":"cache-control","version":"1.0.0","description":"Express/Connect middleware to set url cache options with globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"git@github.com:divshot/cache-control.git"},"keywords":["divshot","superstatic","caching","buster"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/cache-control/issues"},"homepage":"https://github.com/divshot/cache-control","devDependencies":{"connect":"^3.0.2","mocha":"^1.20.1","supertest":"^0.13.0"},"dependencies":{"fast-url-parser":"^1.0.6-0","lodash":"^2.4.1","minimatch":"^0.4.0","on-headers":"^1.0.0","regular":"^0.1.6","slasher":"^0.1.5"},"gitHead":"abf39cd3d2cf2915993f0fcf746f1d351d8f9fa3","_id":"cache-control@1.0.0","_shasum":"2014d316beb234da0e64f605b73fad804821f90d","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"2014d316beb234da0e64f605b73fad804821f90d","tarball":"http://registry-npm.ywwl.com/cache-control/download/cache-control-1.0.0.tgz","integrity":"sha512-MwMFZ4C79tHK7hGMY+BoPiYZwo2/cG8fpnZl/ZQWxNAVG4CdC+gV9ZUbkDuVQ2KdK098+E3WseUzZnpLeObN4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTUCZpkzP1Up3WGEys+rce76cDIGE+6Usa8tvo0k8X5gIgGas3zPmcWpHFJ4AUz1ysl0zB0oUP5RivCR9tK7BpoNE="}],"size":2617,"noattachment":false,"key":"/cache-control/-/cache-control-1.0.0.tgz"},"publish_time":1411075913069,"_cnpm_publish_time":1411075913069},"0.1.1":{"name":"cache-control","version":"0.1.1","description":"Express/Connect middleware to set url cache options with globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"git@github.com:divshot/cache-control.git"},"keywords":["divshot","superstatic","caching","buster"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/cache-control/issues"},"homepage":"https://github.com/divshot/cache-control","devDependencies":{"connect":"^3.0.2","mocha":"^1.20.1","supertest":"^0.13.0"},"dependencies":{"fast-url-parser":"^1.0.6-0","lodash":"^2.4.1","minimatch":"^0.4.0","regular":"^0.1.6","slasher":"^0.1.5"},"gitHead":"884979d124d4eb981a949343d10229b05c24de75","_id":"cache-control@0.1.1","_shasum":"0ed7db17098f055c432f4946ee102336457707b4","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"0ed7db17098f055c432f4946ee102336457707b4","tarball":"http://registry-npm.ywwl.com/cache-control/download/cache-control-0.1.1.tgz","integrity":"sha512-PUHevL00/1bqHK+P+7PBmhje9Qgd8b7ac1Oxp7NV7UNrjo8Z8HReLN4HWnCjUdQviTrvl8x8f462RUfHhOZUhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwpKx0HcI37puBOHFYw30xm2ApNDkmA8iAU8gKITI6YAiB6+dTJ9kPX/FleKM6ZR9yDmjLbpxMp3Z6by8l8idYlUg=="}],"size":2585,"noattachment":false,"key":"/cache-control/-/cache-control-0.1.1.tgz"},"publish_time":1406321352007,"_cnpm_publish_time":1406321352007},"0.1.0":{"name":"cache-control","version":"0.1.0","description":"Express/Connect middleware to set url cache options with globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"git@github.com:divshot/cache-control.git"},"keywords":["divshot","superstatic","caching","buster"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/cache-control/issues"},"homepage":"https://github.com/divshot/cache-control","devDependencies":{"connect":"^3.0.2","mocha":"^1.20.1","supertest":"^0.13.0"},"dependencies":{"fast-url-parser":"^1.0.6-0","lodash":"^2.4.1","minimatch":"^0.4.0","slasher":"^0.1.5"},"gitHead":"5cee81b885d7eee609b36dddc04d366130c076a0","_id":"cache-control@0.1.0","_shasum":"fa9af0e1a9e3d1d9dfc3c5d845fd671f916f9a9d","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"fa9af0e1a9e3d1d9dfc3c5d845fd671f916f9a9d","tarball":"http://registry-npm.ywwl.com/cache-control/download/cache-control-0.1.0.tgz","integrity":"sha512-sMFQndFZ6LsRwB86A8muBv/BUagH/6+dIYbb8FseuTpXNf1pc/650fobH41eS1XFOO37UPEf8uSJbZJCrlKQYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGijqtbtWE3IUIx+RBdXgJ29qckzfetPiCrTKDBj2HP8AiAw7+NfsMeQQQ2vEjocH/AWd5nwT857SZKOqgXXFUZ3+g=="}],"size":2517,"noattachment":false,"key":"/cache-control/-/cache-control-0.1.0.tgz"},"publish_time":1405641802238,"_cnpm_publish_time":1405641802238}},"readme":"# cache-control\n\nExpress/Connect middleware to set url cache options with globs\n\n## Install\n\n```\nnpm install cache-control --save\n```\n\n## Usage\n\n```js\nvar express = require('express');\nvar cache = require('cache-control');\n\nvar app = express();\n\napp.use(cache({\n  '/index.html': 1000,\n  '/none/**/*.html': false,\n  '/private.html': 'private, max-age=300',\n  '/**': 500 // Default to caching all items for 500\n}));\n\napp.listen(3000, function () {\n  \n})\n```\n\n### cache(options)\n\n* `options` - an object contain globs as the keys and caching declarations as the values\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n","_attachments":{},"homepage":"https://github.com/divshot/cache-control","bugs":{"url":"https://github.com/divshot/cache-control/issues"},"license":"MIT"}