-
Currently, the Avatar component does a Ajax request to check if the avatar image is available and to decide if it should show the image or the fallback. Right now there is no caching of any kind. So when you do a navigation, the request is sent again. This is especially problematic if you have a list of avatars. I think it would be helpful if we could check if the image was in the browser cache before doing the request. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Add cache-control headers, and your avatars will be served from memory/disk cache on subsequent requests. Alternatively, use a service-worker to handle it on client-side. |
Beta Was this translation helpful? Give feedback.
I guess you have "disable cache" turned on in the devtools. Radix doesn't set any headers.