Support Request: Is there a way to use cache-first policy with a TTL?

I’m an Apollo newbie here so forgive my ignorance.
I am looking the the apolloClient fetch policy and it indicate that using cache-first fetch policy prioritize serving query results from cache. So:

  1. Does this mean it will not be invalidated until the user does so?
  2. Is there a way to set the fetch policy to be cache-first and invalidate cache objects (query results) after a TTL (some time) has elapsed?

No I don’t think there is currently a built-in way to do this

1 Like