On our forum, we have the uploads folder served by nginx with very aggressive caching under the assumption that uploaded files don't get changed. For most uploads, this is true, but for avatars and profile backgrounds, the new one replaces the old one at the same address. This means:
Instead, I recommend:
If the files are never deleted, wouldn't you run into storage issues? Images are not deleted if you use an upload plugin like imgur.
Suppose the argument here is that storage is cheap?
Unless the avatars are multi-MB images (shame shame shame!) I would think having versioned avatars wouldn't be a bad thing, since most users wouldn't do it (defeating the space argument), and those that do would enjoy the benefits of updated images, satisfying everyone concerned I would think.
Most helpful comment
Unless the avatars are multi-MB images (shame shame shame!) I would think having versioned avatars wouldn't be a bad thing, since most users wouldn't do it (defeating the space argument), and those that do would enjoy the benefits of updated images, satisfying everyone concerned I would think.