{"_id":"cacheme","_rev":"123-b2b70a2f903f4717ea1a55bc1d43b831","name":"cacheme","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"cacheme","version":"0.0.1","keywords":["express","connect","httcache","performance","header"],"author":{"name":"Loïc Calvy","email":"lcalvy+npm@gmail.com"},"_id":"cacheme@0.0.1","maintainers":[{"name":"coorpacademy","email":"lc@coorpacademy.com"}],"homepage":"https://github.com/CoorpAcademy/cacheme","bugs":{"url":"https://github.com/CoorpAcademy/cacheme/issues"},"dist":{"shasum":"2e9fbd4dc4a04f05dc9ac85a08d99aa249e391dd","tarball":"https://registry.npmjs.org/cacheme/-/cacheme-0.0.1.tgz","integrity":"sha512-5e9vlDOdKxdGZnkxH+UM0fw3I9DHe6/j48U8WvZzGkCdEkButOXWOtc79pHOqS3oaTj/cCZgOB8nEg2u4tFNsg==","signatures":[{"sig":"MEUCIQCYWP5fTOx3QbNsx9eZKAu2h+qrunM7lf+cFv2RGM9FWgIgI1C6JYEt2LA4V+LTSYZL3muTG4RPnvk/ntXIikTYkj0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib","_from":".","_shasum":"2e9fbd4dc4a04f05dc9ac85a08d99aa249e391dd","gitHead":"da85fc52853f66b58103465cc572939499ce69e3","scripts":{"test":"istanbul cover --dir reports/coverage --report lcov node_modules/.bin/_mocha -- --reporter spec --no-colors test/*.test.js"},"_npmUser":{"name":"coorpacademy","email":"lc@coorpacademy.com"},"licenses":[{"url":"http://www.opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git@github.com:CoorpAcademy/cacheme.git","type":"git"},"_npmVersion":"2.1.9","description":"Unobtrusively handles http cache based route and params","directories":{},"_nodeVersion":"0.10.33","dependencies":{"debug":"~2.1.1","lodash":"~2.4.1"},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"~2.11.2","chai-connect-middleware":"0.3.x"}},"0.0.2":{"name":"cacheme","version":"0.0.2","keywords":["express","connect","httcache","performance","header"],"author":{"name":"Loïc Calvy","email":"lcalvy+npm@gmail.com"},"_id":"cacheme@0.0.2","maintainers":[{"name":"coorpacademy","email":"lc@coorpacademy.com"}],"homepage":"https://github.com/CoorpAcademy/cacheme","bugs":{"url":"https://github.com/CoorpAcademy/cacheme/issues"},"dist":{"shasum":"d6725b906803f7a5f06f130fc0eb1409c1d01ece","tarball":"https://registry.npmjs.org/cacheme/-/cacheme-0.0.2.tgz","integrity":"sha512-j+OnU51POcLSWeXTDkv0nzRmrzGty6I8ddv618o5C6uCd0dqU9m/YWEEipaeUAq8La7yA+xNEI8OAEycmlEmEA==","signatures":[{"sig":"MEUCIAUro8WPmlwGemSssHvQVYPZMp8FzhqGEE1swY5tBGeCAiEAgPL/37G6juI945JB45HHxfcC3mBlyhMdc12f1CTI9v4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib","_from":".","_shasum":"d6725b906803f7a5f06f130fc0eb1409c1d01ece","gitHead":"1fdb04b52a02f5d43e91c18241e80d5803dbf62c","scripts":{"test":"istanbul cover --dir reports/coverage --report lcov node_modules/.bin/_mocha -- --reporter spec --no-colors test/*.test.js"},"_npmUser":{"name":"coorpacademy","email":"lc@coorpacademy.com"},"licenses":[{"url":"http://www.opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git@github.com:CoorpAcademy/cacheme.git","type":"git"},"_npmVersion":"2.1.9","description":"Unobtrusively handles http cache based route and params","directories":{},"_nodeVersion":"0.10.33","dependencies":{"debug":"~2.1.1","lodash":"~2.4.1"},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"2.11.2","chai-connect-middleware":"0.3.x"}},"0.0.3":{"name":"cacheme","version":"0.0.3","keywords":["express","connect","httcache","performance","header"],"author":{"name":"Loïc Calvy","email":"lcalvy+npm@gmail.com"},"_id":"cacheme@0.0.3","maintainers":[{"name":"coorpacademy","email":"lc@coorpacademy.com"}],"homepage":"https://github.com/CoorpAcademy/cacheme","bugs":{"url":"https://github.com/CoorpAcademy/cacheme/issues"},"dist":{"shasum":"22876dfaad79e0041e17d4c9fbdfa689f9556f1d","tarball":"https://registry.npmjs.org/cacheme/-/cacheme-0.0.3.tgz","integrity":"sha512-BziUiFDj4lTWrhf/PuJC/6nIMaCIFQF54EJRNPjcawqzGfN3TZF/Oo5cFDaL0WOQnDfCgFAaTW9lwrunJHAq6A==","signatures":[{"sig":"MEUCIBEJlTLB/c596zYdR30qJq4gfLvirr8ufYlp0ZFQsfhIAiEApo7y/5vwz3uEYWXlLKhmFTJq24hXqdmZBxim/caihdo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib","_from":".","_shasum":"22876dfaad79e0041e17d4c9fbdfa689f9556f1d","gitHead":"b9598e38ded74bd29c766026da02a8924945eaae","scripts":{"test":"istanbul cover --dir reports/coverage --report lcov node_modules/.bin/_mocha -- --reporter spec --no-colors test/*.test.js"},"_npmUser":{"name":"coorpacademy","email":"lc@coorpacademy.com"},"licenses":[{"url":"http://www.opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git@github.com:CoorpAcademy/cacheme.git","type":"git"},"_npmVersion":"2.1.9","description":"Unobtrusively handles http cache based route and params","directories":{},"_nodeVersion":"0.10.33","dependencies":{"debug":"~2.1.1","lodash":"~2.4.1"},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"2.11.2","chai-connect-middleware":"0.3.x"}},"0.0.4":{"name":"cacheme","version":"0.0.4","keywords":["express","connect","httcache","performance","header"],"author":{"name":"Loïc Calvy","email":"lcalvy+npm@gmail.com"},"_id":"cacheme@0.0.4","maintainers":[{"name":"coorpacademy","email":"lc@coorpacademy.com"}],"homepage":"https://github.com/CoorpAcademy/cacheme","bugs":{"url":"https://github.com/CoorpAcademy/cacheme/issues"},"dist":{"shasum":"814fb8afc341c6364e3da4a4e59e03a9ecf09006","tarball":"https://registry.npmjs.org/cacheme/-/cacheme-0.0.4.tgz","integrity":"sha512-jJrqZLVofx086POKHYsMiSEj7amOo7GCSfudk4Y3NgGvi8GvLQsLPOC5KuCC11M45e5eeVP3KA++k2/WlyP5sg==","signatures":[{"sig":"MEUCIQC5gNrfs1uDNRwkM+g+0BEmS5R4URuuQvTNI5EntHK2VwIgZ+G2GzvDu4/U7Zg36Da2YA3CcOKgfianjv6xaffsoaU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib","_from":".","_shasum":"814fb8afc341c6364e3da4a4e59e03a9ecf09006","gitHead":"ce5a6fa1ddd1939139c778eecf95297d24753de5","scripts":{"test":"istanbul cover --dir reports/coverage --report lcov node_modules/.bin/_mocha -- --reporter spec --no-colors test/*.test.js"},"_npmUser":{"name":"coorpacademy","email":"lc@coorpacademy.com"},"licenses":[{"url":"http://www.opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git@github.com:CoorpAcademy/cacheme.git","type":"git"},"_npmVersion":"2.1.9","description":"Unobtrusively handles http cache based route and params","directories":{},"_nodeVersion":"0.10.33","dependencies":{"debug":"~2.1.1","lodash":"~2.4.1"},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"2.11.2","chai-connect-middleware":"0.3.x"}},"0.0.5":{"name":"cacheme","version":"0.0.5","keywords":["express","connect","httcache","performance","header"],"author":{"name":"Loïc Calvy","email":"lcalvy+npm@gmail.com"},"_id":"cacheme@0.0.5","maintainers":[{"name":"coorpacademy","email":"lc@coorpacademy.com"}],"homepage":"https://github.com/CoorpAcademy/cacheme","bugs":{"url":"https://github.com/CoorpAcademy/cacheme/issues"},"dist":{"shasum":"61b5b22cf4696182ef7650c8a0e8382b9b42fded","tarball":"https://registry.npmjs.org/cacheme/-/cacheme-0.0.5.tgz","integrity":"sha512-JtpfYD6YzTM2cXwvt2db0HjHeai6RrpzdSo1M644dvHKItBzX3Y9TTzjJLDCnofSzk8eJwXdZ+J/4eiW65tVuQ==","signatures":[{"sig":"MEQCIFg8TqX2nLqcV5xAGFgzM+dk8PychLwgHsDYDYP/cAxQAiA5vpSdwUcGdeOcCrIV/NEoJUTC4V/noVX2Uh3ZPOGaAA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib","_from":".","_shasum":"61b5b22cf4696182ef7650c8a0e8382b9b42fded","gitHead":"262dce1dab6abb9bdc0060702d9d0eb5a1c97930","scripts":{"test":"istanbul cover --dir reports/coverage --report lcov node_modules/.bin/_mocha -- --reporter spec --no-colors test/*.test.js"},"_npmUser":{"name":"coorpacademy","email":"lc@coorpacademy.com"},"licenses":[{"url":"http://www.opensource.org/licenses/MIT","type":"MIT"}],"repository":{"url":"git@github.com:CoorpAcademy/cacheme.git","type":"git"},"_npmVersion":"2.1.9","description":"Unobtrusively handles http cache based route and params","directories":{},"_nodeVersion":"0.10.33","dependencies":{"debug":"~2.1.1","lodash":"~2.4.1"},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"2.11.2","chai-connect-middleware":"0.3.x"}}},"time":{"created":"2015-01-21T13:25:40.298Z","modified":"2026-08-03T13:32:32.300Z","0.0.1":"2015-01-21T13:25:40.298Z","0.0.2":"2015-01-21T16:32:42.099Z","0.0.3":"2015-01-21T16:42:13.476Z","0.0.4":"2015-01-22T10:18:27.321Z","0.0.5":"2015-01-22T10:54:43.721Z"},"bugs":{"url":"https://github.com/CoorpAcademy/cacheme/issues"},"author":{"name":"Loïc Calvy","email":"lcalvy+npm@gmail.com"},"homepage":"https://github.com/CoorpAcademy/cacheme","keywords":["express","connect","httcache","performance","header"],"repository":{"url":"git@github.com:CoorpAcademy/cacheme.git","type":"git"},"description":"Unobtrusively handles http cache based route and params","maintainers":[{"email":"silouane.galinou.dev@gmail.com","name":"silou"},{"email":"system@coorpacademy.com","name":"coorpadmin"},{"email":"eric.sampaio@coorpacademy.com","name":"esa-coorp"},{"email":"adriean.khisbe@live.fr","name":"adriean.khisbe"},{"email":"adams.roy27@gmail.com","name":"adamska27"},{"email":"djamel.soualmi@coorpacademy.com","name":"djamelsoualmi"},{"email":"elena.morana@coorpacademy.com","name":"emorana"},{"email":"emeline.leduc@coorpacademy.com","name":"emeline75"},{"email":"phuoc.tran@go1.com","name":"phuoctran8801"},{"email":"aung.maw@go1.com","name":"aung-go1"},{"email":"adams.roy@go1.com","name":"adamska28"},{"email":"chris.dugne@uralys.com","name":"chrisdugne"}],"readme":"# Nodejs Http Cache Helper\n\n[![Coverage Status](https://coveralls.io/repos/CoorpAcademy/cacheme/badge.svg?branch=master)](https://coveralls.io/r/CoorpAcademy/cacheme?branch=master)\n[![Build Status](https://travis-ci.org/CoorpAcademy/cacheme.svg?branch=master)](https://travis-ci.org/CoorpAcademy/cacheme)\n\nA simple but robust Http cache helper\n\n\n## Installation\n\n### Node\n\n```\nnpm install cacheme --save\n```\n\n## Usage\nYou can simply use CacheMe as a classic middleware\n\n```\n{\n    \"main.strategy\": {\n        \"priority\": 1, // lower is more important\n        \"rules\":  [\n            {\n                \"method\": \"get, post, put, del, case insensitive\",\n                \"path\":\"regex\",\n                \"cache\": {\n                    override: 'public, smax-age: 40',\n                    proxy: 'public',\n                    unit: 'second, minute, hour, month, year',\n                    duration: 60\n                }\n\n            }\n        ]\n    }\n}\n```\n\nHttpCache can alos be use directly if you don't need to define strategy based on path\n\n```\n\"cache\": {\n\toverride: 'public, smax-age: 40',\n\tproxy: 'public',\n\tunit: 'second, minute, hour, month, year',\n\tduration: 60,\n    noRevalidate: true || false // this will erase Etag or Last-Modified hedader avoinding 304, default is false\n}\n```\n\n\n## Changelog\n### 0.0.5\n- fix issue about middleware step, now revalidate header are only remove in last step on response.end\n\n### 0.0.4\n- add support of removing revalidate header (Etag, Last-Modified)\n\n### 0.0.3\n- fix issue with case on method \n\n### 0.0.2\n- fix issue on exposing middleware \n### 0.0.1 \n- first commit\n\n## Roadmap\n- Add Expires headerpostMessage\n\n\n\n## Credits\n\n[Loïc Calvy](http://github.com/lcalvy)\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\n","readmeFilename":"README.md"}