caching-proxy2
A Proxy server that caches responses in filesystem that really works
Last updated a year ago by cancerberosgx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install caching-proxy2 
SYNC missed versions from official npm registry.

Caching Proxy

A Proxy server that caches responses in filesystem that really works

  • Need to test against a remote API and have a slow connections?
  • The service has no CORS enabled so you can query it from localhost?

Solution: Cache it in a local server

Install

npm install caching-proxy2

or globally:

npm install -g caching-proxy2

Usage

Imaging you are consuming an API like http://api.server.com/v2/sources/19/series?format=json and now want to cache all requests there locally or just enable CORS. Start caching-server, use the same urls, just change the server name;

npx caching-proxy2 --hostName "http://api.server.com" --port 9000

And now instead of consuming http://api.server.com/v2/sources/19/series?format=json, point your client to http://localhost:9000/v2/sources/19/series?format=json

and voila!

Current Tags

  • 0.1.1                                ...           latest (a year ago)

2 Versions

  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |