Next.js Discord

Discord Forum

Why does Next make `_rsc` requests?

Answered
Cinnamon posted this in #help-forum
Open in Discord
CinnamonOP
I don't know how Next make _rsc requests but it somehow make a request to /logout url as well after successful authentication.
In the /logout route handler i don't made a validate logic if incoming request has _rsc param so it just release the session.
Is it normal to make that requests? It seems It is related server component because of the naming. Should i make a validation logic every time in the route handler?
Answered by aardani
if you don't want to pre-fetch the pages in your <Link> try <Link prefetch={false}>
View full answer

4 Replies

Yes its normal, the _rsc requests are the pre-fetching of the Link that exist in your page.
if you don't want to pre-fetch the pages in your <Link> try <Link prefetch={false}>
Answer
CinnamonOP
Thank you!
You're welcome!