Page 1 of 1

Custom avatar caching issue

Posted: Fri Jul 12, 2013 3:45 am
by enkindle
When updating a user's AvatarFile option, the Crc parameter does not change. Users have to clear their browser cache to get the image to change.

Re: Custom avatar caching issue

Posted: Fri Jul 12, 2013 9:31 am
by Kent Briggs
enkindle wrote:When updating a user's AvatarFile option, the Crc parameter does not change. Users have to clear their browser cache to get the image to change.
Yeah, that's a known issue as the crc is calculated on the group of communal avatars and thus doesn't know about changes to individual custom avatars. I'll revisit that and see if I can find a solution.

Re: Custom avatar caching issue

Posted: Sat Jul 13, 2013 12:28 pm
by enkindle
A fair quick fix would be to just hash the file path\name of the AvatarFile file and use that.

Re: Custom avatar caching issue

Posted: Sat Jul 13, 2013 1:08 pm
by Kent Briggs
enkindle wrote:A fair quick fix would be to just hash the file path\name of the AvatarFile file and use that.
The path isn't known to the client. It just passes in the player name and the server does the lookup locally. The fix will require adding a new field to track crc by player and pass that in to each table along with their other data so it can be included in the image request back to the server.

Re: Custom avatar caching issue

Posted: Sat Jul 13, 2013 5:46 pm
by enkindle
Ahh. I see.

Re: Custom avatar caching issue

Posted: Thu Jul 18, 2013 12:22 pm
by Kent Briggs