This seems to be a trend on local WAMP server, homestead, artisan serve, docker and on Vapor.
The first request in a while on a laravel API application is slow, then subsequent requests seem to be faster, is there a reason for this?
Attached is an example of the same request made multiple times, the first is slow the remainder quick. To rule out database issues, I tried a hello world endpoint, to rule out cached responses I tried a random string generator so that the response remained dynamic.
All experiments lead to the same result, the first request is slow, the remainder are fast.
Any thoughts or ideas are welcome.