IMPR: Use filemtime to refresh css/js

This commit is contained in:
Tony Air 2024-06-12 20:01:43 +02:00
parent 12bf276d89
commit c74c1afad1

View File

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