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.
- Host: GitHub
- URL: https://github.com/akshaypx/caching-proxy
- Owner: akshaypx
- Created: 2024-12-15T07:08:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-15T07:20:47.000Z (over 1 year ago)
- Last Synced: 2025-04-04T23:41:44.495Z (about 1 year ago)
- Topics: caching-proxy, cli, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```