Cache: also preserve etags for files
This commit is contained in:
parent
2921d2fb78
commit
e1fe5279dd
1 changed files with 5 additions and 2 deletions
7
lib/files/cache/scanner.php
vendored
7
lib/files/cache/scanner.php
vendored
|
@ -74,8 +74,11 @@ class Scanner {
|
|||
$this->scanFile($parent);
|
||||
}
|
||||
}
|
||||
if ($checkExisting and $data['size'] === -1 and $cacheData = $this->cache->get($file)) {
|
||||
$data['size'] = $cacheData['size'];
|
||||
if ($checkExisting) {
|
||||
$cacheData = $this->cache->get($file)
|
||||
if ($data['size'] === -1) {
|
||||
$data['size'] = $cacheData['size'];
|
||||
}
|
||||
if ($data['mtime'] === $cacheData['mtime']) {
|
||||
$data['etag'] = $cacheData['etag'];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue