blob: 36b30c26635702022f2a793547f90b24f2c9ede9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php
index 0552b89c2..1b84e1b4e 100644
--- a/program/include/rcmail_output_html.php
+++ b/program/include/rcmail_output_html.php
@@ -1013,13 +1013,13 @@ EOF;
// use minified file if exists (not in development mode)
if (!$this->devel_mode && !preg_match('/\.min\.' . $ext . '$/', $file)) {
$minified_file = substr($file, 0, strlen($ext) * -1) . 'min.' . $ext;
- if ($fs = @filemtime($this->assets_dir . $minified_file)) {
- return $minified_file . '?s=' . $fs;
+ if ($fs = @md5_file($this->assets_dir . $minified_file)) {
+ return $minified_file . '?s=' . substr($fs, 0, 6);
}
}
- if ($fs = @filemtime($this->assets_dir . $file)) {
- $file .= '?s=' . $fs;
+ if ($fs = @md5_file($this->assets_dir . $file)) {
+ $file .= '?s=' . substr($fs, 0, 6);
}
return $file;
|