1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Remove query strings from avatar's urls

Discussion in 'XenForo Questions and Support' started by gotski, Aug 27, 2016.

  1. gotski

    gotski 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!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Why do you want to modify/remove the cache buster?
     
  3. gotski

    gotski Member

    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!
     
  4. Mike

    Mike XenForo Developer Staff Member

    Not explicitly, but having the CDN ignore query strings is likely not ideal.
     

Share This Page