Baseflow / Baseflow/flutter_cache_manager

file is downloaded by eTag condition but not updated in cache

Offen
#250 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Dart
Sterne
809
Forks
510
Ø Merge
6 Min.
Gemergte PRs (30 T.)
1

Beschreibung

## 🐛 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).

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start at the getFileStream(url) entry point and trace the path taken after a 200 response from the server. Check how the downloaded file updates memory cache, then verify that reloading after replacing the server file produces the new content in the stream without an app restart.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
dart, flutter
Bereich
mobile
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.