The version is an MD5 based off the CB version, the file timestamp, and the domain. This prevents browser cache from causing wonky issues when we make a new release and the browser cached the CSS or JS file, which then causes style bugs or JS bugs temporarily.
If CB API is loaded you can use it to add to the header as follows.
CSS File:
Code:
$_CB_framework->document->addHeadStyleSheet( PATH_HERE );
JS File:
Code:
$_CB_framework->document->addHeadScriptUrl( PATH_HERE );
Our document API has quite a bit other usages in addition to those functions having additional usages. You can find the API at the below location for more detailed usage.
libraries/CBLib/CB/Legacy/CBdocumentHtml.php
If you just want to see how we do the version you can find that in the addVersionFileUrl function of the above file.