mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Use filemtime to refresh css/js
This commit is contained in:
parent
12bf276d89
commit
c74c1afad1
@ -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'];
|
||||||
|
Loading…
Reference in New Issue
Block a user