Krzysztof Kotlarek a811976023
FIX: reset gravatar cache by adding random param to URL (#9370)
Users noticed that sometimes, avatar from Gravatar is not correctly updated - https://meta.discourse.org/t/updated-image-on-gravatar-not-seeing-it-update-on-site/54357

A potential reason for that is that even if you update your avatar in Gravatar, URL stays the same and if the cache is involved, service is still receiving the old photo.

For example. In my case, when I click the button to refresh avatar the
new Upload record is created with `origin` URL to new avatar, and `url` to
old one

I made some tests in the rails console and adding random param to Gravatar URL is deceiving cache and correct, the newest avatar is downloaded
2020-04-08 07:35:42 +10:00
..
2019-11-19 10:21:06 +00:00
2019-11-29 15:49:08 +00:00
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-05-13 15:24:24 +01:00
2019-10-21 12:08:20 +01:00
2019-12-04 13:33:51 -05:00
2020-01-21 19:23:08 +02:00
2019-05-29 14:26:24 +10:00
2019-10-21 12:08:20 +01:00
2020-01-27 15:28:56 +01:00
2020-01-27 15:28:56 +01:00
2019-10-17 16:58:22 +11:00