/** * Overrides parent method to add cache buster parameter */ public function registerCssFile($url, $media = '') { return parent::registerCssFile($url . $this->getCacheBusterSuffix($url), $media); }
/** * Overrides parent method to add cache buster parameter and substitute the asset * domain if requested */ public function registerCssFile($url, $media = '') { if ($this->useAbsolutePaths) { $url = $this->makeUrlAbsolute($url); } $url = $this->getCSSPathname($url); if (X2AssetManager::$enableAssetDomains) { $url = Yii::app()->assetManager->substituteAssetDomain($url); } return parent::registerCssFile($url . $this->getCacheBusterSuffix($url), $media); }