I might be doing something wrong but I'm having problems with stale data when using the graphql endpoint via apollo using apollo-link-prismic
Does it take into account the prismic-ref when caching responses? Or is there something I'm missing to make it do this? I've tried setting the fetchPolicy on useQuery to 'no-cache' but it's still using stale data from the cache.
Hmm, I installed the Apollo chrome inspector tool and when I use 'no-cache', it shows the Apollo cache as empty, so maybe it's the browser cache that's causing a problem instead? Any way round this?
Yeah, it gets the updates in an incognito window, but then if I make more updates then these aren't shown. It also works if I tick 'disable cache' in chrome inspector.
(I get the same problems in react native android app)
I'm a Paul as well, maybe it just doesn't like Pauls?
Glad it's not just us though, and that it's a recent thing, we've only recently implemented it and so we weren't 100% sure whether we were just mis-remembering that it worked correctly when we first implemented it.
I have followed up again with our dev team, and I will let you know if we get any updates, it seems for me the issue comes from the browser cache, do you agree?
Hi @Fares, I don't suppose you have a rough estimate of how long it'll be? At the moment this issue is stopping us releasing our app, as it doesn't get updated content.