diff --git a/src/Helpers/Assets.php b/src/Helpers/Assets.php index 678de702..1a798740 100644 --- a/src/Helpers/Assets.php +++ b/src/Helpers/Assets.php @@ -16,12 +16,12 @@ class Assets extends \Chibi\Util\Assets public function addStylesheet($path) { - return parent::addStylesheet('/media/css/' . $path); + return parent::addStylesheet($this->decorateUrl('/media/css/' . $path)); } public function addScript($path) { - return parent::addScript('/media/js/' . $path); + return parent::addScript($this->decorateUrl('/media/js/' . $path)); } public function transformHtml($html) @@ -47,4 +47,10 @@ class Assets extends \Chibi\Util\Assets $html = str_replace('', $bodySnippet . '', $html); return $html; } + + + private function decorateUrl($url) + { + return $url . '?' . PropertyModel::get(PropertyModel::EngineVersion); + } }