How to remove query string from avatar URL?

Chris D

XenForo developer
Staff member
it's better for load speed
No, it isn't :)

The value appended to the end is the timestamp the avatar was uploaded. We use this as a cache buster. Without it, a user would change their avatar and that avatar change wouldn't appear to take effect because browsers will have cached the old avatar. If the time on the end changes, then this invalidates the cache and therefore will start to display and cache the correct image.