Hi, i implement and end point which call an extern...
# server
m
Hi, i implement and end point which call an external API. I would like to cache for 30 seconds the answer. I tried HttpCache on my ktor client but i found anything to manage the ttl. have you something ?
1
j
if you want to cache client-side you need to set
Cache-Control
headers on the server-side. See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control
f
want a kmp solution ? 😄