diff --git a/README.md b/README.md index 56cb5385..da3830ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # angel_static -[](https://pub.dartlang.org/packages/angel_static) +[](https://pub.dartlang.org/packages/angel_static) [](https://travis-ci.org/angel-dart/static) Static server middleware for Angel. diff --git a/lib/src/cache.dart b/lib/src/cache.dart index cb32e784..e28ed664 100644 --- a/lib/src/cache.dart +++ b/lib/src/cache.dart @@ -142,7 +142,7 @@ class CachingVirtualDirectory extends VirtualDirectory { return file.readAsBytes().then((buf) { var etag = _etags[file.absolute.path] = - generateEtag(buf, weak: useWeakEtags != false); + generateEtag(buf, weak: useWeakEtags != false, hash: hash); res.headers ..[HttpHeaders.ETAG] = etag ..[HttpHeaders.CONTENT_TYPE] = lookupMimeType(file.path); diff --git a/pubspec.yaml b/pubspec.yaml index 59b2d0d0..6f19d2c0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ environment: sdk: ">=1.19.0" homepage: https://github.com/angel-dart/angel_static author: thosakwe <thosakwe@gmail.com> -version: 1.1.3 +version: 1.1.4 dependencies: angel_framework: ^1.0.0-dev intl: ">=0.0.0 <1.0.0"