does fetch cache work in server action
Answered
Sage Thrasher posted this in #help-forum
Sage ThrasherOP
when calling a server action on a server component, is this treated as a server action or just a regular function? I have a function which fetches an external API, and as next.js states, fetch cache doesn't work when used in a server action, so im wondering if calling this function has the same effect or not
Answered by Ray
its an regular function, a server action is invoked on client side which will make a POST request to the server
1 Reply
its an regular function, a server action is invoked on client side which will make a POST request to the server
Answer