Baseflow / Baseflow/flutter_cache_manager
file is downloaded by eTag condition but not updated in cache
- Ngôn ngữ chính
- Dart
- Star
- 809
- Fork
- 510
- Merge trung bình
- 6 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
## 🐛 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).
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu tại điểm vào getFileStream(url) và theo dõi đường đi được thực hiện sau khi nhận phản hồi 200 từ máy chủ. Kiểm tra cách tệp đã tải xuống cập nhật bộ nhớ đệm trong bộ nhớ, sau đó xác minh rằng việc tải lại sau khi thay thế tệp trên máy chủ sẽ đưa nội dung mới vào stream mà không cần khởi động lại app.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- dart, flutter
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100