Manage cached image after uploading new image to Firebase Storage
See original GitHub issueHello. I’m using FirebaseUI-Storage to load user avatar, it’s working great but there is a problem when user change avatar (upload new image to Firebase Storage) and it does not change with next Glide request (it load deprecated image from cache). I don’t want to disable Glide Cache Policy. I think it should work like this:
StorageReference avatarRef = ...
Glide.with(this)
.using(new FirebaseImageLoader())
.load(avatarRef)
.signature(new StringSignature(avatarRef.lastModified()))
.into(ivUserAvatar);
But there is no way to get any unique information about this image to set signature. Do you have any ideas ?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:20 (5 by maintainers)
Top Results From Across the Web
Refresh cached image after uploading new image to Firebase ...
I have uploaded a new image to Firebase Storage, but it will not be replaced as the documentation states: "SDWebImage does very aggressive ......
Read more >Upload files with Cloud Storage on Web - Firebase
Cloud Storage for Firebase allows you to quickly and easily upload files to a Cloud Storage bucket provided and managed by Firebase.
Read more >How to Load Images from Firebase Storage and Caching (Ep 6)
Now that we have our images uploaded to Firebase Storage, lets go ahead and fire off some requests to download them.
Read more >Can't service images directly from Firebase Storage
You can also cache the download URLs (using your desired system URL cache), so even if you perform multiple requests, it'll get the...
Read more >Select and Upload images to Firebase Storage Flutter
Firebase storage dependency. Add the dependency to your pubspec.yaml file. Check the latest version here. dependencies: flutter: sdk: flutter firebase_core: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the Firebase team can easily fix it. Since this lib downloads the image from firebase storage they can verify the cache also. why the cache is not verified? I can not switch to URLs since I am storing user profile picture ref in different documents and collection.
No updates on this? It was opened more than 2 years ago. I am running into the same issue. I want users to only have one avatar so creating new URLs for each upload and deleting the old one seems like a bad workaround.