fmt
This commit is contained in:
parent
6a3309c987
commit
c7edb44085
1 changed files with 3 additions and 2 deletions
|
@ -153,7 +153,8 @@ class CachingVirtualDirectory extends VirtualDirectory {
|
||||||
|
|
||||||
return file.lastModified().then((stamp) {
|
return file.lastModified().then((stamp) {
|
||||||
if (useEtags) {
|
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);
|
setCachedHeaders(stat.modified, req, res);
|
||||||
|
|
Loading…
Reference in a new issue