You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run multiple requests using coroutines and retrofit2 and with proper caching headers in incerteptors and everything works fine except one request that is called multiple times and in result doesn't save to cache.
I debug DiskLruCache class and notice that:
if (entry?.currentEditor != null) { return null // Another edit is in progress. }
is allways not null for this particular endpoint.
The text was updated successfully, but these errors were encountered:
Please contribute an executable test case that demonstrates this problem. You should be able to add a test to CacheTest.kt which is where all this stuff goes in OkHttp.
I run multiple requests using coroutines and retrofit2 and with proper caching headers in incerteptors and everything works fine except one request that is called multiple times and in result doesn't save to cache.
I debug DiskLruCache class and notice that:
if (entry?.currentEditor != null) { return null // Another edit is in progress. }
is allways not null for this particular endpoint.
The text was updated successfully, but these errors were encountered: