# Gravatar refresh not working

**URL:** https://meta.discourse.org/t/gravatar-refresh-not-working/33381
**Category:** Bug
**Created:** [September 17, 2015, 7:21am UTC](https://meta.discourse.org/t/gravatar-refresh-not-working/33381 "2015-09-17T07:21:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ntadej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ntadej/32/116716_2.png) [@ntadej](https://meta.discourse.org/u/ntadej)
#### Post date: [September 17, 2015, 7:21am UTC](https://meta.discourse.org/t/gravatar-refresh-not-working/33381/1 "2015-09-17T07:21:17Z")

</div>

I recently updated my avatar on Gravatar. I know discourse caches these images so I decided to manually refresh the image but it’s not applied and now I only have placeholder 1px avatar.

What seems to happen:  
When clicking refresh, a new image gets downloaded and avatar index gets increased, but my user still has same index in URL returned from server.

Example from my local instance:  
My user’s avatar: `/user_avatar/discuss.tano.si/tadej/90/2_1.png`  
When I inspect Gravatar in user settings: `/user_avatar/discuss.tano.si/tadej/90/17_1.png`

I experience the same here on meta and on my instance (latest beta).

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 17, 2015, 7:27am UTC](https://meta.discourse.org/t/gravatar-refresh-not-working/33381/2 "2015-09-17T07:27:42Z")

</div>

Sure, @zogstrip can you have a peek?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [September 17, 2015, 7:47am UTC](https://meta.discourse.org/t/gravatar-refresh-not-working/33381/3 "2015-09-17T07:47:34Z")

</div>

@zogstrip is this similar to the gravatar issue we are seeing with @purldator’s account?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [September 17, 2015, 8:02am UTC](https://meta.discourse.org/t/gravatar-refresh-not-working/33381/4 "2015-09-17T08:02:47Z")

</div>

I guess I’ll find out 😉

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [September 17, 2015, 5:44pm UTC](https://meta.discourse.org/t/gravatar-refresh-not-working/33381/5 "2015-09-17T17:44:58Z")

</div>

Ok, the fix is in 🐩

[https://github.com/discourse/discourse/commit/07e7b07b63caff59c94bff3b43889009010a03bb](https://github.com/discourse/discourse/commit/07e7b07b63caff59c94bff3b43889009010a03bb)

And yes, @sam, it’s the same issue that is affecting @purldator’s avatar.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [September 17, 2015, 5:45pm UTC](https://meta.discourse.org/t/gravatar-refresh-not-working/33381/6 "2015-09-17T17:45:01Z")

</div>


