Use specified cache directory and timeout for the HTTP layer.