Cache html, image, css, javascript, and other files. Set the time duration globally and/or for each file.
Build the test project and navigate to http://localhost:8005/mypage.htm.
- Start a shell window
- cd <to any directory (other than $GOPATH)>
- git clone https://github.com/kambahr/go-webcache.git && cd go-webcache/test
- go mod init go-webcache/test
- go mod tidy
- go mod vendor
- go build -o cacheDemo && ./cacheDemo
Navigate to http://localhost:8005/mypage.html.