Next.js Discord

Discord Forum

Does "Data Cache" work with POST(gRPC) request?

Unanswered
French Angora posted this in #help-forum
Open in Discord
French AngoraOP
"Data Cache" is this URL.
https://nextjs.org/docs/app/building-your-application/caching#data-cache
Has anyone confirmed that it actually works? thank you.

11 Replies

French AngoraOP
@Siamese
Do you have the source?
@French Angora <@503282932241268736> Do you have the source?
Siamese
thats just an educated guess
why would POST be cached
French AngoraOP
I think since gRPC and GraphQL primarily use POST methods, but are widely adopted protocols, it's not surprising that caching for POST requests is supported.
French AngoraOP
Do you have an understanding of gRPC and GraphQL?
Scottish Fold
not sure how gRPC works, but perhaps you can use unstable_cachehttps://nextjs.org/docs/app/api-reference/functions/unstable_cache
@French Angora Do you have an understanding of gRPC and GraphQL?
Siamese
No, but post request is a post request
It's to modify data, not fetch it