Following Nextjs 13's docs on fetch cache: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#caching-data
I expect all fetch calls response to be cached and cached responses should be relatively faster. In our project, on local machine caching works as expected, we get sub-millisecond response for cached calls, however we noticed that some of our fetch calls are not being in cached on deployment even when they are explicitly set to be cached. On further exploration we found that if we invoke fetch in parallel inside a async-await loop, the fetch is not cached.
For sake of example i have used cdn urls of cdnjs and jsdelivr and fetched them in parallel, and also a singular api fetch call without loop. I have attached the screenshots of response times. (code in next reply)
It might be something silly in the code or something wrong on vercel's end (probably not) i am not sure. This behaviour isn't document either in the docs. Any help would be greatly appreciated.
EDIT:
We are using "nextjs":"13.4.13"