Does Apollo support anything similar to e-tags?
# apollo-kotlin
n
Does Apollo support anything similar to e-tags?
b
Hi! If you mean HTTP ETag, that's supported by OkHttp (the underlying client used by Apollo) if you configure it with a cache, and that should work if you use GET (by default Apollo will use POST but you can configure it). But as you said "similar to" maybe you mean something else? 🙂
n
I was just reading this article here after I asked the question
we could say that a GraphQL query’s max-age is equal to the field in the query with the lowest max-age.
Is something like this possible?
b
Well this article talks about HTTP caching but Apollo Kotlin also has a normalized cache, which currently doesn't have a notion of expiration / max-age, but that's something that we're currently looking at.
n
thats so cool, thanks!
b
If you're using Apollo server you can also have a look at how caching works with it here
n
we don’t 😞
👍 1
m
Out of curiosity, does your server send some etags?
n
I just asked the team
they aren’t sending etags
👍 1