This commit is contained in:
Tobe O 2019-01-27 17:15:02 -05:00
parent 6a3309c987
commit c7edb44085

View file

@ -153,7 +153,8 @@ 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);