diff --git a/README.md b/README.md index 02c1c600..8272c5af 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# angel_static +# static -[![version 1.1.4+1](https://img.shields.io/badge/pub-1.1.4+1-brightgreen.svg)](https://pub.dartlang.org/packages/angel_static) +[![Pub](https://img.shields.io/pub/v/angel_static.svg)](https://pub.dartlang.org/packages/angel_static) [![build status](https://travis-ci.org/angel-dart/static.svg?branch=master)](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 db310efe..f49f0069 100644 --- a/lib/src/cache.dart +++ b/lib/src/cache.dart @@ -162,7 +162,7 @@ class CachingVirtualDirectory extends VirtualDirectory { void setCachedHeaders( File file, FileStat stat, RequestContext req, ResponseContext res) { var privacy = accessLevelToString(accessLevel ?? CacheAccessLevel.PUBLIC); - var expiry = new DateTime.now()..add(new Duration(seconds: maxAge ?? 0)); + var expiry = new DateTime.now().add(new Duration(seconds: maxAge ?? 0)); res.headers ..[HttpHeaders.CACHE_CONTROL] = '$privacy, max-age=${maxAge ?? 0}' diff --git a/pubspec.yaml b/pubspec.yaml index 6805d32d..8f93d485 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 -version: 1.1.4+1 +version: 1.1.4+2 dependencies: angel_framework: ^1.0.0-dev intl: ">=0.0.0 <1.0.0"