Cache wrapper around the popular request.js module.
- Has the same API as request
- Cache content based on response cache headers
- You control which version of
request
to use - Follows RFC7234
var cache = require('request-cache')
var request = cache(require('request'))
request('http://example.com', function(err, res, body){
console.log('Response from example.com', body)
request('http://example.com', function(err, res, body){
console.log('Cached response from example.com', body)
})
})
request-cache is an OPEN Open Source Project. This means that:
Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
See the contribution guide for more details.
Phillip Johnsen | GitHub/phillipj | Twitter/@phillipjohnsen |
---|
Copyright © 2015 request-cache contributors.
request-cache is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md
file for more details.