You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm relatively new to Connect and have been following the tutorial to implement rpc in my Next.js app.
Considering the following
I'm getting cache errors from next saying that caching for this call failed (hsr.dev is my nextjs app and nas-ws is my rust backend server with the rpc endpoints)
Describe the solution you'd like
I was wondering if this is a misconfiguration on my part or caching is not yet supported for Next.js, or if caching rpc is not possible in general
The text was updated successfully, but these errors were encountered:
I can confirm that cache only applies to GET requests from this doc. The connect protocol supports GET requests, if you can switch to connect protocol then GET requests (and therefore caching) can be enabled on a per rpc basis.
Let us know if you run into any problems, closing this for now feel free reach out if I missed something.
If you are using the cache function it shouldn't matter if it is a get/post request. Does the error also tell you why it failed to create the cache key?
Is your feature request related to a problem? Please describe.
I'm relatively new to Connect and have been following the tutorial to implement rpc in my Next.js app.
Considering the following
I'm getting cache errors from next saying that caching for this call failed (hsr.dev is my nextjs app and nas-ws is my rust backend server with the rpc endpoints)
Describe the solution you'd like
I was wondering if this is a misconfiguration on my part or caching is not yet supported for Next.js, or if caching rpc is not possible in general
The text was updated successfully, but these errors were encountered: