fmt
This commit is contained in:
parent
6a3309c987
commit
c7edb44085
1 changed files with 3 additions and 2 deletions
|
@ -153,9 +153,10 @@ class CachingVirtualDirectory extends VirtualDirectory {
|
|||
|
||||
return file.lastModified().then((stamp) {
|
||||
if (useEtags) {
|
||||
res.headers['ETag'] = _etags[file.absolute.path] = stamp.millisecondsSinceEpoch.toString();
|
||||
res.headers['ETag'] = _etags[file.absolute.path] =
|
||||
stamp.millisecondsSinceEpoch.toString();
|
||||
}
|
||||
|
||||
|
||||
setCachedHeaders(stat.modified, req, res);
|
||||
return res.streamFile(file).then((_) => false);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue