Next.js Discord

Discord Forum

Is there a way to cache the response of a POST request in Next.js 14?

Answered
JM posted this in #help-forum
Open in Discord
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?
Answered by joulev
no it is not possible
View full answer

2 Replies