Next.js Discord

Discord Forum

Client Side API Call Cache

Unanswered
rushikesh posted this in #help-forum
Open in Discord
Does Next.js 14 by default cache the response of GET calls made using axios on the client side, and is there a possibility of receiving stale data?

7 Replies

but it is possible to receive stale data if you are fetching your GET endpoint
because GET endpoint is static by default
@Ray because GET endpoint is static by default
Even if my backend is on different sever and not in the same NEXT JS Application?
@rushikesh Even if my backend is on different sever and not in the same NEXT JS Application?
it won't be static if you are fetching external api
i meant the GET endpoint on nextjs is static by default
Okay. Thank you! This is helpful.