[Plugin: W3 Total Cache] Cache Gravatars? (4 posts)

  1. jivany
    Posted 5 years ago #

    Would it be possible to cache gravatars?

    Passing a default image to gravatar results in a lot of different URLs all pointing to the same image (either the default on Gravatar or your own default). It would be really nice if W3 could detect undefined gravatars and replace them with a direct link to a user defined value (on the CDN for example).

    Example, these two URLs point to the same "Mystery Man" image:

    If you change the first URL to thie following, it returns a 404 meaning the user has no gravatar:

    This could then be replaced by something like:

    For users who have a gravatar, re-writing (minify) the URLs to remove all of the extra info (specifically the "d" value) could save hundreds or thousands of bytes on chatty pages.

    I would assume this gravatar checking would have to be done in the background. If a user changes their gravatar, obviously it wouldn't update until the cache expired. Not a big deal. ;)

    Thanks for a great plugin!


  2. Frederick Townes
    Posted 5 years ago #

    Would it be possible to cache gravatars?

    Sorry this is not possible now and there are no plans for it as the Gravatar service does a decent job in most respects. Sorry.

  3. a1wsn
    Posted 5 years ago #

    Please see the following link for a detailed explanation about the speed problem with Gravatars :


  4. Frederick Townes
    Posted 5 years ago #

    I'm already aware of the various concerns. But this is currently beyond the scope of the plugin as there are too many use cases to make a single one-size-fits all solution right now.

Topic Closed

This topic has been closed to new replies.

About this Topic