Join Slack
Powered by
If Application errors exist i.e `response.errors` ...
# apollo-kotlin
m
maxgdn
06/07/2021, 9:25 PM
If Application errors exist i.e
response.errors
will the resulting response (query) be cached? Any good reading material or resources on this topic?
w
wasyl
06/07/2021, 9:36 PM
You can control this with a cache header
https://github.com/apollographql/apollo-android/blob/14926b288c545878a5227e71ed19f[…]ain/kotlin/com/apollographql/apollo/cache/ApolloCacheHeaders.kt
👍 1
m
maxgdn
06/07/2021, 9:37 PM
Wow! Thank you Łukasz!!!
👍 1
w
wasyl
06/07/2021, 9:38 PM
So by default such responses will not be cached, but you can make it so that they are by adding this header. Example here:
https://github.com/apollographql/apollo-android/blob/14926b288c545878a5227e71ed19f[…]on/src/test/java/com/apollographql/apollo/CacheHeadersTest.java
🙂
❤️ 1
2
Views
Open in Slack
Previous
Next