flutter_cache_manager icon indicating copy to clipboard operation
flutter_cache_manager copied to clipboard

file is downloaded by eTag condition but not updated in cache

Open petro-i opened this issue 5 years ago • 0 comments

🐛 Bug Report

  1. Load a file image with max-age = 5 second (there is overriden value of 0 seconds with 7 days - which is not good actually).
  2. Replace file on server with new one
  3. Reload image

Actual result: it is visible that code 200 is coming from file download, file is actually downloaded, but memory cache not updated, old file is added to stream produced by getFileStream(url) method (the last one, the first one is from memory cache which is OK). App restart helps to see new file (code 304 is reported by server, file is not actually downloaded).

petro-i avatar Nov 20 '20 14:11 petro-i