TODO:
- Implements in memory caching of response with differents strategy :
- LRU
- Small files only
- Smart request duplicate detection (No need to fetch to same resource multiple times)
- Http stats handler.
- Specific config by path/host.
- Improve logging.
- Test streamed requests
- Errors on remote conn closed
- test vary headers
- Proper management of cache update
- Add x-cache headers : https://lyte.id.au/2014/08/28/x-cache-and-x-cache-lookupheaders/
- Caching heuristic
- Transparent proxy
- Dynamic cert using SNI