3

I am trying to completely disable caching on the apollo-client but its not working.

I have tried to set the fetchPolicy to 'network-only' or 'no-cache'. Is there something that I am missing?

4

1 回答 1

3

您可以在需要清理缓存时删除持久化器。

  const persistor = new CachePersistor({ cache: this.cache, storage: window.sessionStorage as any });
  await persistor.remove();
于 2019-05-09T14:53:13.110 回答