User Avatar Caching #4827

Open
opened 2026-02-05 09:18:59 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @BloodyIron on GitHub (Jun 18, 2024).

Describe the feature you'd like

I'm doing some performance tuning for a Bookstack instance I have on a slower environment, and I've noticed that my User Avatar (which pulls from LDAPS/AD) never gets cached by my browser (or allowed to do so), pulling from the server every time.

I think it would be beneficial for User Avatars to be cached in the user's browser upon login (whether #5066 happens or not) such that it only gets replaced in cache when the User's Avatar changes (one way or another), but otherwise stays in the browser.

This User Avatar gets requested from the server on every page load (once logged in) from what I see. While it isn't a huge payload, the wait times from the server seems to (in my case) double the loading time of the page in an avoidable way.

I'm not really seeing any downside to having this aspect cache-able by the browser, so could we please have this added at some point? Thanks! :)

Describe the benefits this would bring to existing BookStack users

All page loading once logging in would be faster due to reduced redundant requests.

Can the goal of this request already be achieved via other means?

Not that I know of.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

3 months to 1 year

Additional context

/\ ___ /
( o o )
\ >#< /
/
/ \ ^
| | //
\ / //
/// /// --

Originally created by @BloodyIron on GitHub (Jun 18, 2024). ### Describe the feature you'd like I'm doing some performance tuning for a Bookstack instance I have on a slower environment, and I've noticed that my User Avatar (which pulls from LDAPS/AD) never gets cached by my browser (or allowed to do so), pulling from the server every time. I think it would be beneficial for User Avatars to be cached in the user's browser upon login (whether #5066 happens or not) such that it only gets replaced in cache when the User's Avatar changes (one way or another), but otherwise stays in the browser. This User Avatar gets requested from the server on _every_ page load (once logged in) from what I see. While it isn't a huge payload, the wait times from the server seems to (in my case) double the loading time of the page in an avoidable way. I'm not really seeing any downside to having this aspect cache-able by the browser, so could we please have this added at some point? Thanks! :) ### Describe the benefits this would bring to existing BookStack users All page loading once logging in would be faster due to reduced redundant requests. ### Can the goal of this request already be achieved via other means? Not that I know of. ### Have you searched for an existing open/closed issue? - [X] I have searched for existing issues and none cover my fundamental request ### How long have you been using BookStack? 3 months to 1 year ### Additional context /\ ___ /\ ( o o ) \ >#< / / \ / \ ^ | | // \ / // /// /// --
OVERLORD added the 🔨 Feature Request label 2026-02-05 09:18:59 +03:00
Author
Owner

@BloodyIron commented on GitHub (Jun 18, 2024):

Ugh my kitty got squished.

@BloodyIron commented on GitHub (Jun 18, 2024): Ugh my kitty got squished.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4827