cURL hanging for 15 seconds when sending HEAD requests
问题 Background I've been timing some HTTP requests via the CLI using time and tools such as wget and curl as follows: /usr/bin/time -v wget --spider http://localhost/index /usr/bin/time -v curl http://localhost/index 2>&1 > /dev/null What I noticed is that when using curl , I was getting similar response times as with wget only on the first request, and much lower times on subsequent requests, as if the responses to curl were served from cache and wget were not. After investigating I found out