MyBB Community Forums

Full Version: Version in javascript url necessary?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I am wondering if the version number in the url of the javascripts is necessary and what it is used for

urls from headerinclude template
Quote:<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>

I saw that in admin control panel these scripts are called without passing a version number.

Google page speed recommends to remove this that's why I'm asking.

Greetings
atnun
It just makes the browser recache them when new changes have been made since the previous MyBB release.
Ah ok, sounds logical.
So if I combine the scripts and add the version number to the filename instead I would achieve the same effect.

Thanks
Yeah, you just have to remember to update it whenever the files are changed. .P
Of course.
Thanks for the confirmation.

atnun