working http server with cache