-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server caches blocks/transactions responses #3
Comments
|
Turns out the "network-only" fetchPolicy is not working on the server. The react-apollo code is explicitly changing the value to use "cache-first" for some reason: https://github.com/apollographql/react-apollo/blob/1b28d92cf1a09fe28c40cbad91b31a0208313663/src/graphql.tsx#L417-L422. See issue here: apollographql/react-apollo#556. Possible solution is to switch to using the |
As a workaround, I've set the |
Closing this for now since my workaround is working. |
Not sure if this is an issue with the actual HTML response being cached or the graphql results getting stuck in memory somehow. This only happens when the server generates the HTML for either the
/blocks
or/transactions
route, not when it is client rendered (after first hitting the home page, for example).The text was updated successfully, but these errors were encountered: