You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Instead of loading the avatars every time, cache it at least in the scope of the current page until a page reload.
What currently happens is that when there's a list of repeated avatars (ex: collaborators in the "shared with others" list), each avatar is loading again on its own, with different timings. So they don't appear at the same time.
The browser cache can only kick in for the already known URLs. Which is for max. 60 seconds now. Since presigned URLs get invalidated pretty quick we cannot build a reasonable cache at the moment. For a single page load it is improved though, since we re-use the same presigned URL by userId. As a result, if one and the same avatar is on the current page 5 times, we only load it once and use it 4 times from the cache (native browser caching).
Activity
pascalwengerter commentedon May 12, 2021
@fschade to what extent did #5073 mitigate this issue?
fschade commentedon May 12, 2021
no, at the moment we only cache the url // presigned-url.
kulmann commentedon May 12, 2021
The browser cache can only kick in for the already known URLs. Which is for max. 60 seconds now. Since presigned URLs get invalidated pretty quick we cannot build a reasonable cache at the moment. For a single page load it is improved though, since we re-use the same presigned URL by userId. As a result, if one and the same avatar is on the current page 5 times, we only load it once and use it 4 times from the cache (native browser caching).