Skip to content

Manage cached image after uploading new image to Firebase StorageΒ #479

Open
@stanbar

Description

@stanbar

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 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions