A CLI tool that acts as an HTTP proxy, intercepting user requests and caching responses to reduce repeated network calls. Cached responses are served locally when possible, improving performance and efficiency.
- Clone the Repo
git clone https://github.com/bunnysocks/caching-proxy
cd caching-proxy- Install deps and make it executable
npm i
chmod +x ./bin/parser
npm link- start the server
caching-proxy --port <port-number> --origin <origin-server>for example:
caching-proxy --port 8080 --origin http://dummyjson.com- send a GET Request using curl
curl -i http://localhost:8080/docs- Expected Output
First Request
curl -i http://localhost:8080/docs
X-Cache: MISSOn Second Request
curl -i http://localhost:8080/docs
X-Cache: HIT- How to get started? (DEMO)
