GitXplorerGitXplorer
p

request-cache

public
2 stars
1 forks
10 issues

Commits

List of commits on branch master.
Unverified
5f1e2dfc01ecf15bf49a7c10224b92f66a88e49b

Use is-cacheable

pphillipj committed 9 years ago
Unverified
d3ed0fa3247d557eac5281d7b7ae22c1c089a3f8

Container based Travis infrastructure.

pphillipj committed 9 years ago
Unverified
47b592f5e4b85cfef85e4936e8bbe497a6160324

Added tl;dr

pphillipj committed 9 years ago
Unverified
a6adf1dec501faae74ebad6943262e9e7a717d83

standard-ize

pphillipj committed 9 years ago
Unverified
e29c36f0eb4beb714b99b2f1f89a9eee6cdfb941

Test on node v4 aswell

pphillipj committed 9 years ago
Unverified
73395f09b29aa54a1a0a6fefc9a24e8eea9fd85e

Pixel perfecting readme

pphillipj committed 9 years ago

README

The README file for this repository.

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 Johnsen GitHub/phillipj Twitter/@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.