Caching with Apollo used with SSR on frontend. #2465
robiot
started this conversation in
Apollo GraphQL
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using @apollo/client with Next.js Server Side Rendering. The data I am fetching is from wp-graphql, and therefore it is crucial to have them rendered on server side (SEO). There is just one slight issue, the cache is forever. I either have to reset the cache every x minutes:
or specify the no-cache policy
Is there any better way to do this, while still using SSR?
Maybe by having a websocket, that tells when query data changed, if that's possible, how?
Beta Was this translation helpful? Give feedback.
All reactions