From 5091dd038fa14e9e834d7b6c636cfa2d3c8ffd22 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 2 Jan 2016 14:59:09 +1030 Subject: [PATCH] Ensure a new asset revision identifier is generated if there is none --- framework/core/src/Asset/RevisionCompiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Asset/RevisionCompiler.php b/framework/core/src/Asset/RevisionCompiler.php index 80f816779..da8f8ffa3 100644 --- a/framework/core/src/Asset/RevisionCompiler.php +++ b/framework/core/src/Asset/RevisionCompiler.php @@ -75,7 +75,7 @@ class RevisionCompiler implements CompilerInterface $ext = pathinfo($this->filename, PATHINFO_EXTENSION); $file = $this->path.'/'.substr_replace($this->filename, '-'.$old, -strlen($ext) - 1, 0); - if ($this->watch) { + if ($this->watch || ! $old) { $cacheDifferentiator = [$this->getCacheDifferentiator()]; foreach ($this->files as $source) {