First request taking much longer than subsequent requests

Hello,

Whenever I run a PHP script that connects to the World Check API, the first request made always takes a lot longer than the following requests. For a script that makes 9 requests, here are the times taken and the HTTP response codes

  • 60 seconds (200)
  • 0 seconds (200)
  • 0 seconds (200)
  • 1 seconds (200)
  • 0 seconds (200)
  • 0 seconds (200)
  • 1 seconds (200)
  • 1 seconds (200)

I don't believe this to be a caching issue as I get the same results with different requests. Occasionally the first request will return a 401 but the ones after will return 200

I am connecting to the Pilot server for these requests.

Any help is appreciated thanks,

Craig

Best Answer

  • Hello @Craig,

    I understand that every request from this chain is different. Could you tell me what type is the first request?