diff --git a/framework/core/src/Frontend/Compiler/RevisionCompiler.php b/framework/core/src/Frontend/Compiler/RevisionCompiler.php index 92f758196..88676e18b 100644 --- a/framework/core/src/Frontend/Compiler/RevisionCompiler.php +++ b/framework/core/src/Frontend/Compiler/RevisionCompiler.php @@ -86,7 +86,7 @@ class RevisionCompiler implements CompilerInterface $this->putRevision($newRevision); - if ($oldFile) { + if ($oldFile && $oldFile !== $newFile) { $this->delete($oldFile); } }