question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manage cached image after uploading new image to Firebase Storage

See original GitHub issue

Hello. 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:open
  • Created 7 years ago
  • Reactions:5
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
visvajeetcommented, Jun 5, 2021

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.

2reactions
nak411commented, May 16, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found