Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Cache for avatars #3098

Closed
Closed

Description

@PVince81

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.

Activity

  1. pascalwengerter commented on May 12, 2021

    @pascalwengerter
    Contributor

    @fschade to what extent did #5073 mitigate this issue?

  2. fschade commented on May 12, 2021

    @fschade
    Contributor

    @fschade to what extent did #5073 mitigate this issue?

    no, at the moment we only cache the url // presigned-url.

  3. kulmann commented on May 12, 2021

    @kulmann
    Contributor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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