npm start
http_proxy='127.0.0.1:3000' curl 'http://www.google.com.ua/?gfe_rd=cr&ei=dghVV4LSGrCt8we1yJbABg'
-
On first request proxy create
cache.txt
for caching- Send request with url
- Write response to cache
- Send response to requester
- Send request with url
-
On second request will response with body from cache and send request
- Send response to requester from cache
- Send request with url
- Write response to cache