Cacheserver is a very simply http caching proxy.
This project is meant to be a proxy for (large) downloads on http servers and not meant to proxy a human interfaceing website.
go get -u github.com/chrisvdg/cacheservergo build
# install in $GO/bin
go install# Listen to localhost only on port 8000 and proxy google
cacheserver -l "127.0.0.1:8000" -p http://google.com
# Listen to all incoming requests on port 9000 and proxy download.archive and show debug output
cacheserver -l ":9000" -p http://download.archive -vA docker file has been added to generate a docker image
To build the docker image
docker build -t cacheserver .Run a container with image
docker run --rm -ti cacheserver -l ":80" -p http://download.archive -vA prebuilt image has been uploaded to docker hub. To import the image
docker pull chrisvdg/cacheserver