A small caching proxy to cache http/https requests
go build
go run . -p 3000 -origin https://example.com
go install github.com/Fidnix/[email protected]
Note
Maybe tou have to check your GOBIN env variable with go env
caching-proxy --port 3000 -origin https://example.com
When execute the program, it creates a server to listen https://example.com
requests behind localhost:3000
Each response returned will have a x-cache header with values: HIT, MISS; depending on if it's cached
- Cache content by query params
- Cache content by request body
- Allow log option
- Verify args
- Modularize project
- Tests