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

sidebar nav avatar is not updating #1247

Open
Blaimi opened this issue Aug 31, 2023 · 7 comments · May be fixed by #1281
Open

sidebar nav avatar is not updating #1247

Blaimi opened this issue Aug 31, 2023 · 7 comments · May be fixed by #1281
Labels

Comments

@Blaimi
Copy link

Blaimi commented Aug 31, 2023

I changed my avatar and now the news app still displays the old picture. The nextcloud app itself got the update.

@David-Development
Copy link
Member

@Blaimi Is this still an issue? The images are cached for about a day if I'm not mistaken.

@Blaimi
Copy link
Author

Blaimi commented Sep 5, 2023

Hi :),

yes. It's still the wrong avatar. I can't remember when i canged it, but it should be around two weeks ago. I did not clear any caches or relogin or something.

Thank you :)

@David-Development
Copy link
Member

@Blaimi Which version of the app are you using?

@Blaimi
Copy link
Author

Blaimi commented Sep 5, 2023

0.9.9.81. I can't remember if it is installed via Play Store or via F-Droid

@Blaimi
Copy link
Author

Blaimi commented Sep 5, 2023

But: If the image cache is implemented with a ttl: I had the old image for at least two years, maybe longer than I have this device 😉

@David-Development
Copy link
Member

It shouldn't be.. 😅

could you check what the Avatar is when you open the following url: https://nextcloud.xxx.com/index.php/avatar/<your-name>/64 - e.g. https://nextcloud.xxx.com/index.php/avatar/david/64

You can find the user id in the web UI if you go to files -> Files Settings -> WebDav -> The last part of the URL is your user id.

Maybe you can also get the response headers to see what the TTL is for you? e.g. curl -v https://nextcloud.xxx.com/index.php/avatar/david/64 (please make sure to remove all sensitive information before dumping the output here)

@David-Development
Copy link
Member

Okay, I found the issue. It looks like that the library we use for ImageLoading doesn't handle caching very well. It only uses a URL as the cache key. Cache Headers such as Last-Modified or ETag are completely ignored. I'll try to find a solution to fix this issue..

bumptech/glide#1847

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

Successfully merging a pull request may close this issue.

2 participants