Cache: on equal mtime also for equal size before keeping ETag, at least makes Unit Test happy
This commit is contained in:
parent
3d29a82150
commit
78c694b6ee
|
@ -75,7 +75,8 @@ class Scanner {
|
|||
}
|
||||
}
|
||||
if($cacheData = $this->cache->get($file)) {
|
||||
if ($data['mtime'] === $cacheData['mtime']) {
|
||||
if ($data['mtime'] === $cacheData['mtime'] &&
|
||||
$data['size'] === $cacheData['size']) {
|
||||
$data['etag'] = $cacheData['etag'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue