Hi, I'm currently using Ktor as the HTTP client in...
# ktor
a
Hi, I'm currently using Ktor as the HTTP client in my application. In OkHttp, there's a feature called 'pruning the HTTP cache. Is there an equivalent functionality or recommended approach in Ktor to achieve similar cache pruning for HTTP requests? I am using io.ktor.client.plugins.cache.HttpCache
a
In other words, you want to evict all cache entries, right?
a
correct @Aleksei Tirman [JB]
a
Unfortunately, that's not possible.
a
Is there any workaround @Aleksei Tirman [JB]? maybe like recreating instance of ktor client?
a
If you use the file storage then you can delete the files to prune the cache.
a
Ok I will try it. Thank you @Aleksei Tirman [JB]