IMPR: Use filemtime to refresh css/js

This commit is contained in:
Tony Air 2024-06-12 20:01:01 +02:00
parent 07d3704245
commit 83be0ce8ef

View File

@ -249,7 +249,7 @@ class DeferredRequirements implements TemplateGlobalProvider
);
$absolutePath = Director::getAbsFile($path);
$hash = sha1_file($absolutePath);
$hash = filemtime($absolutePath);
$version = $config['version'] ? '&v='.$config['version'] : '';
//$static_domain = $config['static_domain'];