diff --git a/src/Asset/RevisionCompiler.php b/src/Asset/RevisionCompiler.php index 80f816779..da8f8ffa3 100644 --- a/src/Asset/RevisionCompiler.php +++ b/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) {