Closed ilya-savinkov closed 4 months ago
So we are actually using ktor's CacheStorage
for caching images to the disk, meaning requests will probably still be shown in the logs.
Can you verify there is actually no data in your application's cache directory? I just tested on android & desktop and cached data is being retrieved from the disk cache. Loading cached images in airplane mode in the sample is working as expected on android.
I did find a bug where desktop doesn't work offline, but when online it is still loading images from the disk cache.
I tested your logging setup. It does indeed log requests even if loading from the disk cache in airplane mode. If you don't like this behavior report it to ktor.
I tested ios offline, and it also errors before it tries to load from the diskcache. I'll have to look into that as well. It should be working fine while connected to the internet as well though
If loading data while offline is what you're having an issue with follow #104
Hello, I have next Kamel config
Here I have httpCache with DefaultHttpCacheSize. When I launch app my images download, but when I restart app my images download again.