Skip to content

phillipj/request-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

request-cache

Build Status js-standard-style

Cache wrapper around the popular request.js module.

TL;DR

  • Has the same API as request
  • Cache content based on response cache headers
  • You control which version of request to use
  • Follows RFC7234

Usage

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)
  })
})

Still very much work in progress!

Contributing

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.

Contributors

Phillip JohnsenGitHub/phillipjTwitter/@phillipjohnsen

License

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.

About

Cache wrapper around the popular request.js module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published