Closed realchandan closed 1 year ago
I tried to reproduce this with this URL: https://media1.giphy.com/media/sG8gmIFd6G7xHdQE9y/200.gif
In the response, we get: cache-control: no-store, private, max-age=0, no-cache, must-revalidate, s-maxage=0
This is why the cache store is empty.
If you want to force cache, you must use the dedicated policies and handle it by yourself.
It works fine, when using CachePolicy.forceCache
I can't believe I have spend so many hours on this (reading the source code and debugging the code)
I have ended up using cached_network_image
thus It's no longer an issue for me!
Thank You! @llfbandit
Hi @llfbandit ,
I'm facing a bug where I am getting empty data/no data (not null though) from the dio response.data field.
I'm trying to fetch gifs from giphy and cache them for later use.
I'm attaching two screenshots, In the first one you can see the gif loads properly when it hits the actual giphy servers and fetches the data, but in the other screenshot, you can see the debugger and data field of response is an empty array.
I'm attaching minimum reproducible code below -
I am waiting to hear from you! Thank You!