{"name":"cache-header","version":"1.0.0","description":"Get and set the response cache header","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"https://github.com/scottcorgan/cache-header.git"},"keywords":["headers","cache","caching","express","connect"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/cache-header/issues"},"homepage":"https://github.com/scottcorgan/cache-header","dependencies":{"lodash.isnumber":"^2.4.1","lodash.isstring":"^2.4.1","regular":"^0.1.6"},"devDependencies":{"chai":"^1.9.1","connect":"^3.2.0","mocha":"^1.21.4","supertest":"^0.13.0"},"gitHead":"06eadcdfe2cc1ec6395ad0f96309798e24364499","_id":"cache-header@1.0.0","_shasum":"f6eb5777aa5d9be0f297ca9d32debdf8e3dd0343","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"f6eb5777aa5d9be0f297ca9d32debdf8e3dd0343","tarball":"http://registry-npm.ywwl.com/cache-header/download/cache-header-1.0.0.tgz","integrity":"sha512-jy3+WeR3Vc9N0pH1ef6RAXbWVzHUq/SOxXc6EkGidNWv1Z8NzlS7CWKKVNqOAQlyaIgIMUcDVsvJvFQukFLQaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGvQ6Z/KYsnvG0fHIHqlvDcpXV6abzpwOs0ct2Tgw/8nAiBpoEZ60YzLS8qFyyukXQxSGrbXc2d7e30qSSpyz89Mfw=="}],"size":2371,"noattachment":false,"key":"/cache-header/-/cache-header-1.0.0.tgz"},"readme":"# cache-header\n\nGet and set the response cache header\n\n## Install\n\n```\nnpm install cache-header --save\n```\n\n## Usage\n\n```js\nvar express = require('express');\nvar cacheHeader = require('cache-header');\n\nvar app = express();\n\napp.use(function (req, res, next) {\n  // Sets Cache-Control header to public, max-age=10000\n  cacheHeader(res, 10000);\n  next();\n});\n\napp.listen(3000, function () {\n  \n});\n```\n\n### cacheHeader(responseObject, headerValue)\n\n* `responseObject` - the response object passed through by Node\n* `headerValue` - value to set the header to. Can be the following types:\n  * `false` - sets value to `no-cache`\n  * `number` - a number or a parseable string. Sets header to `public, max-age={number}`\n  * `string` - sets the header to whatever the string is\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n","publish_time":1411495424579,"_cnpm_publish_time":1411495424579,"dist-tags":{"latest":"1.0.3"}}