So I have an app that I would like to display some content from the server. If this server ever goes down, I still want to display the content from cache, but ideally I’d always be showing thee latest data, so i’ve used a fetch policy of cache-and-network.
The problem is, since the information is quite time sensitive, I’d like to be able to display a message to the user when the request failed and the data had to come from the cache. I was wondering if there’s a way to detect that the response came from the cache in Apollo? If not, does anyone know of another way of achieving something similar?
Thanks a lot for any help you’re able to give.