Join Slack
Powered by
Is there a way to force ktor to read from cache an...
# ktor
d
Dewan Tawsif
08/28/2025, 12:58 PM
Is there a way to force ktor to read from cache and fail if the request is not cached? In OkHttp I can set cache control to
CacheControl.FORCE_CACHE
to achieve this behavior.
a
Aleksei Tirman [JB]
08/29/2025, 9:03 AM
Do you mean with the
HttpCache
plugin?
d
Dewan Tawsif
08/29/2025, 9:10 AM
Sure? If it helps me get the results I want.
a
Aleksei Tirman [JB]
08/29/2025, 2:15 PM
Unfortunately, there is no way to force the plugin to read from cache or fail if it's not there.
3
Views
Open in Slack
Previous
Next