src/Common/Service/Asset.php
protected function addCacheBuster($sAsset)
    {
        if ($this->sCacheBuster) {

            $aParsedUrl = parse_url($sAsset);

            if (empty($aParsedUrl['query'])) {

                $sAsset .= '?';

            } else {

                $sAsset .= '&';
            }

            $sAsset .= 'revision=' . $this->sCacheBuster;
        }

        return $sAsset;
    }
protected function addCacheBuster($sAsset)
    {
        if ($this->sCacheBuster) {

            $aParsedUrl = parse_url($sAsset);

            if (empty($aParsedUrl['query'])) {

                $sAsset .= '?';

            } else {

                $sAsset .= '&';
            }

            $sAsset .= 'revision=' . $this->sCacheBuster;
        }

        return $sAsset;
    }
protected function addCacheBuster ( $ sAsset ) { if ( $ this -> sCacheBuster ) { $ aParsedUrl = parse_url ( $ sAsset ) ; if ( empty ( $ aParsedUrl [ 'query' ] ) ) { $ sAsset .= '?' ; } else { $ sAsset .= '&' ; } $ sAsset .= 'revision=' . $ this -> sCacheBuster ; } return $ sAsset ; }
Appends the cacheBuster string to the asset name, accounts for existing query strings

@param string $sAsset The asset's url to append
Appends the cacheBuster string to the asset name accounts for existing query strings