MyBB Community Forums

Full Version: Remove question mark from avatar url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to remove question mark from avatar urls?
how to make them like this:

Default urls are like:
http://example.com/uploads/avatars/avata...1928539264

I want them to be: [/u]
http://example.com/uploads/avatars/avatar_46.gif
Why u want to do this ? I dont think that the question mark is doing anything bad here. Also i dont hear about a plugin for that.

I think mycode can help on this.
They're there so when a user changes their avatar, the browser caches the new version instead of showing the old one. I wouldn't recommend removing it.
(2011-09-02, 12:59 AM)Malcolm. Wrote: [ -> ]They're there so when a user changes their avatar, the browser caches the new version instead of showing the old one. I wouldn't recommend removing it.

I want to make them cache. But IMO adding expire header will search for new version if we only use expire header, as I've check it with my css file.

I also want to make javascripts (prototype.js, general.js. )cache, they never change and adding expire header of a month will be better but the question marks are restricting me to do so.