Skip to content

bunnysocks/caching-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caching-proxy

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.

Steps to Build

  1. Clone the Repo
git clone https://github.com/bunnysocks/caching-proxy
cd caching-proxy
  1. Install deps and make it executable
npm i
chmod +x ./bin/parser 
npm link
  1. start the server
caching-proxy --port <port-number> --origin <origin-server>

for example:

caching-proxy --port 8080 --origin http://dummyjson.com
  1. send a GET Request using curl
curl -i http://localhost:8080/docs
  1. Expected Output

First Request

curl -i http://localhost:8080/docs

X-Cache: MISS

On Second Request

curl -i http://localhost:8080/docs

X-Cache: HIT
  1. How to get started? (DEMO)

help

Ref: https://roadmap.sh/projects/caching-server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published