MyBB Hacks

Full Version: Unique Avatar URLs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
An issue I've encountered at times is with uploaded avatars and browser caches.

Let's say, a user uploads a PNG avatar.
Two weeks later, they upload another PNG avatar.  However, when they finish uploading it, they see their old avatar!
This is because the browser is caching their old avatar - a simple page refresh fixes it, however, other users may see the old avatar...

...and, users aren't always that intelligent.

This simple plugin forces avatar upload URLs to be unique, thus, forcing the browser to reload the avatar, whenever it's changed.
True, not many users refresh their cache, therefore they see the old images for a while.
Reference URL's