Skip to content

//okhttp/okhttp3/EventListener/cacheHit

cacheHit

[jvm]\ open fun cacheHit(call: Call, response: Response)

Invoked when a result is served from the cache. The Response provided is the top level Response and normal event sequences will not be received.

This event will only be received when a Cache is configured for the client.