Level 1
I've same problem, please let me know how we can decrease TTFB time or transfer start time in file request.
2 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have an empty API in laravel code with nginx server. Now the problem is that the API takes a lot of time if I try with different files and the API responds quickly if I try with blank data.
Case 1 : I called the API with a blank request, that time response time will be only 228ms.
Case 2 : I called the API with a 5MB file request, that time response time will be 15.58s.
So how can we reduce transfer start or ttfb time in apache or nginx server ?
Please or to participate in this conversation.