XF 1.5 Remove query strings from avatar's urls


Active member
Hello, i created a small mod and use htaccess for removed a query strings from avatars.

for example:

before: data/avatars/s/0/1.jpg?1468399043

after: data/avatars/s/0/1468399043/1.jpg

I am not a professional programmer, and so my question is, what pitfalls or problems do I get if I use this method?

Thank you!


Active member
Why do you want to modify/remove the cache buster?
My CDN provider ignored a query string, and if my members upload new avatar, old avatar continues to take from the CDN cache.

Are there any downsides to my little modification?

Thank you!


XenForo developer
Staff member
Not explicitly, but having the CDN ignore query strings is likely not ideal.