diff --git a/framework/core/src/Asset/RevisionCompiler.php b/framework/core/src/Asset/RevisionCompiler.php index 3993b90a7..9911c5b11 100644 --- a/framework/core/src/Asset/RevisionCompiler.php +++ b/framework/core/src/Asset/RevisionCompiler.php @@ -81,6 +81,10 @@ class RevisionCompiler implements CompilerInterface $cacheDifferentiator[] = [$source, filemtime($source)]; } + foreach ($this->strings as $callback) { + $cacheDifferentiator[] = $callback(); + } + $current = hash('crc32b', serialize($cacheDifferentiator)); }