An open API service indexing awesome lists of open source software.

https://github.com/akshaypx/caching-proxy

A CLI tool that starts a caching proxy server, it will forward requests to the actual server and cache the responses. If the same request is made again, it will return the cached response instead of forwarding the request to the server.
https://github.com/akshaypx/caching-proxy

caching-proxy cli javascript nodejs

Last synced: about 1 month ago
JSON representation

A CLI tool that starts a caching proxy server, it will forward requests to the actual server and cache the responses. If the same request is made again, it will return the cached response instead of forwarding the request to the server.

Awesome Lists containing this project

README

          

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

## Commands
- To start server run

```
caching-proxy --port --origin
```
```--port``` is the port on which the caching proxy server will run.

```--origin``` is the URL of the server to which the requests will be forwarded.

- Clear the cache by running a command like following
```
caching-proxy --clear-cache
```

- About the response
```
# If the response is from the cache
X-Cache: HIT

# If the response is from the origin server
X-Cache: MISS
```

### Example
```
caching-proxy --port 3000 --origin http://dummyjson.com
```