I\'m using apollo-client, apollo-link and react-apollo, I want to fully disable cache, but don\'t know how to do it.
I read the source of
Actually, setting fetchPolicy
to network-only
still saves the response to the cache for later use, bypassing the reading and forcing a network request.
If you really want to disable the cache, read and write, use no-cache
. Which is "similar to network-only, except the query's result is not stored in the cache."
Take a look at the official docs: https://www.apollographql.com/docs/react/data/queries/#configuring-fetch-logic