Open engadori opened 1 year ago
It makes a HEAD
request followed by a GET
. Could that be what you're seeing?
The first call might be a prefetch call followed by an actual API call.
By default prefetch use HEAD method call but can be overridden to make GET API call for prefetch as well.
Hi Cyntler.
When I using 'uri' props in 'DocViewer' component, It requests twice to my backend api.
here is my process. when I request my file to backend, It needs 'Authorization' headers. The 'Next js API' was simply settings that headers
When I tested except 'Nextjs API', same result ( requesting twice ).
what should i do? plz give me some feedbacks.