Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I cache Gravatar icon or access image directly?

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.

like image 934
Patrick Desjardins Avatar asked Sep 14 '09 15:09

Patrick Desjardins


People also ask

What is Gravatar cache?

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.

Why is my Gravatar not showing up on WordPress?

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 a Gravatar image?

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.


1 Answers

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.

like image 98
dove Avatar answered Nov 15 '22 18:11

dove