Is there a way to cache the response of a POST request in Next.js 14?
Answered
JM posted this in #help-forum
JMOP
Hi Next- Devs,
For instance, after successfully posting a blog post and receiving the response, I then route to post/[id] using 'router.push', and on the post/[id] route, I make a GET request for that specific post.
Is there a way to retrieve the cached data in the GET request to reduce request time? Is there any reference I should look at?
For instance, after successfully posting a blog post and receiving the response, I then route to post/[id] using 'router.push', and on the post/[id] route, I make a GET request for that specific post.
Is there a way to retrieve the cached data in the GET request to reduce request time? Is there any reference I should look at?
2 Replies
@joulev no it is not possible
JMOP
thank you