I updated the image in my Gravatar but my old picture still shows up.

Is this a cache issue?

Do I need to log out and then log back in?


8 Answers 8


Jeff Atwood has stated that gravatar images are cached, so if it hasn't been very long, wait and it should change eventually. I do not believe logging in and out would influence this at all, since your gravatar is shown to everyone, not just you. Your logging in and out (of Stack Overflow) should have no affect.

Interesting note: your user page has not been updated, however the image for this question and on the questions page has been. I'm sure the user page will catch up, I just thought it was interesting.

  • When I click on my user page, I get the old image. Strange.
    – sal
    Commented Sep 14, 2009 at 20:28
  • 2
    The Gravatar images are cached on gravatar.com Commented Sep 15, 2009 at 18:23
  • 4
    Yah, I updated mine maybe 3 weeks ago, it still has the default image and isn't updating from gravitar.
    – Gary
    Commented May 7, 2010 at 13:49
  • 1
    Same in my case. None of the advice seemed to work. Not a big deal (StackOverflow is not MySpace), but still annoying, given that it specifically says that pictures are refreshed in 24 hours tops, and somewhat ironic that programming community can't have something simple working 100%.
    – Morawski
    Commented Aug 17, 2011 at 19:16
  • 2
    Same here. Gravatar works fine everywhere but not here.
    – cnd
    Commented Apr 27, 2012 at 5:51
  • I got the same problem, and I solved: I copied the wrong image URL, and opened it in a new tab, getting new avatar, refreshing previous github profile page, and getting new avatar :)
    – lucasvc
    Commented Apr 24, 2017 at 11:43
  • I "solved" it in other way: I copied the "new" avatar's URL into separate browser tab, (it was still old), then I pressed Ctrl-F5, forcing it to reload or whatever and it actually updated! (i did it after the gravatar.com relogging tho).
    – AgentFire
    Commented May 11, 2017 at 10:30

You need to log out of Gravatar.

Gravatar doesn't seem to invalidate its cache until you are logged out. Either by doing so manually, or waiting for the session to expire (on their end).

I have actually prevented the cache from being invalidated, by continuing to visit http://gravatar.com everyday. I didn't realize at the time it was preventing the site from invalidating the cache.

  • How long did it take to invalidate the cache once you stopped visiting gravatar.com?
    – user143826
    Commented Feb 24, 2010 at 19:06
  • @Marc The cache was invalidated within minutes of logging out. Commented Feb 24, 2010 at 19:36
  • This is the correct answer. Gravatar is updated as soon as you log out from Gravatar and SOSUSFM
    – rlb.usa
    Commented Jun 8, 2010 at 16:34
  • This doesn't seem to be working for me, been repeating it many times unfortunately Commented Jul 10, 2012 at 18:50
  • Gravatar support let me know that logging of should not matter, @Daniel. (Of course, this might have been true in 2009.)
    – Arjan
    Commented Jul 14, 2012 at 18:16
  • Yeah you're right, 10 mins after I posted my comment it worked, thanks for the reply though Commented Jul 14, 2012 at 21:47
  • The only way I found to fix this issue was to delete the old gravatar
    – Meta Ellen
    Commented Jul 14, 2012 at 21:55
  • Logged out of Gravatar, and just like that, the picture updated. Thanks!
    – Tim S.
    Commented May 1, 2014 at 9:14
  • Logging out worked for me after a few minutes. If you want to make sure your gravatar updated, open the image in a new tab. There should be a query parameter with the size, i.e. ?s=24 after your email hash. Change this size to anything from 1 to 2000. This will make sure you're not getting a cached version of the image. Gravatar does seem to cache images on their end, using a new size will generate a new image to cache though. It should only take a few minutes for them to stop returning a 304 response. Commented Feb 15, 2015 at 13:24

I'm one of the Happiness Engineers working with Gravatar right now. Someone kindly pointed us in the direction of this thread, so I thought I would stop in and just point out a few things.

First, you can always check your Gravatar for any email address at:


Enter your email address into the form and you can see how your Grav will appear to a site that requests it, including ratings.

We are currently investigating a caching problem that occurs when a default Gravatar is specified in the querystring of the image request ("d="). We know this is happening and hope to have it fixed soon.

In the meantime, if you need a forced refresh of your Gravatar cache please file a support request and we can do that for you.

If you have any other questions feel free to leave me a message or contact us at Gravatar.


I've had problems where my browser (Safari) refused to update my Gravatar before, no matter how many times I refreshed. If you haven't, I suggest closing your browser, restarting it, and reloading your profile. If it still doesn't change, try flushing your cache, restarting, etc.

If that doesn't do it, I don't know what will, but it's definitely not StackOverflow's fault. I'd suggest filing a bug report with Gravatar.


All you have to do is:

This works because Gravatars are not stored on the website you're using - they're stored on Gravatar so you need to refresh your cache there and you're done.

  • This worked best for me! Commented Feb 14, 2017 at 2:02
  • Indeed this worked perfectly! I just needed to right-click on every small icon-image, whether it was in the top panel of my stackexchange-profile, or any post I'd made somewhere, select open image in new tab, then in that tab press CTRL + F5, close the tab, go back to the original one and refresh again. Funny enough you have to do this with several icons, if they are placed at a different position of the website interface, but once done it'll apply to all similar ones on any given website of the stackexchange - universe.
    – Andreas L.
    Commented Oct 29, 2020 at 9:19

There are multiple sources for this problem:

  • One is using a different email address. (And note that though for Gmail addresses like johndoe@gmail, john.doe@gmail and john.doe+whatever@gmail are all the same, they are different addresses with different avatars for Gravatar.)

  • Regular caching, in which Gravatar tells the browser to cache for 5 minutes. Just wait.

  • Caching at Gravatar. Wait a bit more. (Some say one needs to log off too?)

  • You might have set some explicit rating, or no rating at all, while Stack Exchange requests PG.

  • Issues with the Gravatar CDN, which (like in July 2012) for some parts of the world might serve images that were actually changed weeks ago. Also, as Stack Exchange uses different formats (profile 128×128, user card 32×32, expanded user card 64×64), some sizes might then be okay, while others are not. Even problems like these might be solved by waiting a bit longer, or maybe uploading some new image might trigger a new synchronization. Regardless if that helps or not: I guess you'll need to contact their service desk, giving the details about the server you're using.

Some technical insight in CDN issues:

Peeking into the Server header in the HTTP response (using something like Chrome's Developer Tools or Firebug in Firefox) will reveal which server you're using.

Like using the Frankfurt EdgeCast server, a two week old 64×64 image might be just fine:

Cache-Control: max-age=300  
Content-Disposition: inline; filename="a80f263bea9df760a7d8932cd415ce3e.jpeg"   
Content-Type: image/jpeg    
Date: Fri, 13 Jul 2012 12:23:04 GMT 
Expires: Fri, 13 Jul 2012 12:28:04 GMT  
Last-Modified: Fri, 29 Jun 2012 08:10:29 GMT    
Server: ECS (fra/5950)

Here, Last-Modified: Fri, 29 Jun 2012 08:10:29 GMT is the date the avatar was changed. (For some time, it would use the subscription date, but that was solved.) But for the very same image, the 128×128 version might show a default avatar:

Cache-Control: max-age=300  
Content-Type: image/png 
Date: Fri, 13 Jul 2012 12:20:34 GMT 
Expires: Fri, 13 Jul 2012 12:25:34 GMT  
Last-Modified: Wed, 11 Jan 1984 08:00:00 GMT    
Server: ECS (fra/5950)  

Above, Last-Modified: Wed, 11 Jan 1984 08:00:00 GMT indicates it's a default, generated avatar. But for that very same image, the Amsterdam EdgeCast server might give the expected image:

curl --compressed --head \

Cache-Control: max-age=300
Content-Disposition: inline; filename="a80f263bea9df760a7d8932cd415ce3e.jpeg"
Content-Type: image/jpeg
Date: Fri, 13 Jul 2012 12:34:32 GMT
Expires: Fri, 13 Jul 2012 12:39:32 GMT
Last-Modified: Fri, 29 Jun 2012 08:10:29 GMT
Server: ECS (ams/49DF)

Also, for the very same image but without the rating r=PG, the Frankfurt server might serve the expected image too:

Cache-Control: max-age=300  
Content-Disposition: inline; filename="a80f263bea9df760a7d8932cd415ce3e.jpeg"   
Content-Type: image/jpeg    
Date: Fri, 13 Jul 2012 12:40:29 GMT 
Expires: Fri, 13 Jul 2012 12:45:29 GMT  
Last-Modified: Fri, 29 Jun 2012 08:10:29 GMT
Server: ECS (fra/5950)

Like said: report CDN problems to Gravatar.


You need to follow up with gravatar.com , not us.

That said, usually you just need to wait a few days.

  • it was a browser cache problem, too bad it doesn't work like any other image, since you can change your picture but never know how it is being displayed. Commented Jul 23, 2009 at 13:09
  • 7
    i disagree that this isn't a SO issue. SO has made the choice to use Gravatar which has this issue. Seeing as how hosting an image is the full reason for using Gravatar, I'd say the inability to change your picture puts it at about 40% broken. Commented Feb 24, 2010 at 18:53
  • 3
    And I have my gravatar updating everywhere but not here...
    – cnd
    Commented Apr 27, 2012 at 5:37
  • @Cynede, me too! Only on stack is not showing! it was... but i exhanged emails (but the email is not the problem, it's well defined on gravatar and here)
    – marcolopes
    Commented Sep 7, 2018 at 3:40

The problem for me was that Safari was caching my profile image. It had already updated on Gravatar's site, but even when I reloaded my user profile my image didn't change. I ended up emptying the cache and restarting my browser, and that solved it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .