Don't chamge file times when Last-Modified-Header is missing

This commit is contained in:
wbaumann
2009-09-13 19:58:57 +00:00
parent 0de3396a3d
commit 94af607c70
5 changed files with 49 additions and 42 deletions

View File

@ -2710,9 +2710,11 @@ update_cache_file(dav_node *node)
&smtime, &node->mime_type, NULL);
if (!ret) {
node->etag = etag;
node->atime = smtime;
node->mtime = smtime;
node->smtime = smtime;
if (smtime) {
node->atime = smtime;
node->mtime = smtime;
node->smtime = smtime;
}
node->utime = time(NULL);
set_cache_file_times(node);
cache_size += node->size;