In the context of having a list of user that has an icon next to their name, is it better to cache all images of Gravatar for few minutes or it's fine to directly display the image from Gravatar? The list is around 200 users on every pages.
Optimum Gravatar Cache allows you to create a local cache with optimized copies of gravatars. The optimization is accomplished by resizing the avatars to the sizes used on your site, in addition to optimizing the images internally. Optimizations are performed to minimize the size of each avatar served by the plugin.
To enable Gravatar display and hovercard display on your blog go to > Settings > Discussion and scroll way done the page to “Avatars”. Note that you can also change your gravatar on another page if you prefer to.
What is Gravatar? Gravatar stands for Globally Recognized Avatar. This web service lets users upload an online avatar and will associate the avatar with their email address.
Let Gravatar do the caching. Most likely the a local isp, if not browser, would have them cached further downstream already.
Not sure how you were going to hold them on your server, but it's better web performance to load from multiple domains anyway, allows more parallel downloads.
In fact, if you cached them yourself you might do a lot more damage than good, as it's more likely someone is going to have the popular gravatars cached from a visit to some other site, SO for e.g.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With