Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image is not being refetched if updated and behind the same url #999

Open
2 tasks done
justChris opened this issue Jan 4, 2025 · 0 comments
Open
2 tasks done

Image is not being refetched if updated and behind the same url #999

justChris opened this issue Jan 4, 2025 · 0 comments

Comments

@justChris
Copy link

justChris commented Jan 4, 2025

🐛 Bug Report

When I update an image behind the same url, the server (firebase storage) sends a changed etag and last-modified header, but flutter_cached_network_image will not refetch the image or update the cache. However I will never see the updated image in the app.

E.g.: Sent headers by firebase storage:

expires: Sat, 04 Jan 2025 07:28:31 GMT
date: Sat, 04 Jan 2025 07:28:31 GMT
cache-control: private, max-age=0
last-modified: Fri, 03 Jan 2025 23:13:20 GMT
etag: "2c5956f09b373d887f07b829a943b80b"

Expected behavior

I'm expecting that the image's etag is checked every time the image is requested in the app and if that etag has changed flutter_cached_network_image should refetch the image and update the cache.

Reproduction steps

Just use flutter_cached_network_image with its default cache_manager.

Configuration

Version: 3.4.1

Platform:

  • 📱 iOS
  • 🤖 Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant