From caa2842efa896a5f34c6b03be6579dc243581e0c Mon Sep 17 00:00:00 2001 From: thosakwe Date: Sat, 10 Jun 2017 14:04:32 -0400 Subject: [PATCH] Fixed image regexp --- bin/multi_server.dart | 2 +- bin/scaled_server.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/multi_server.dart b/bin/multi_server.dart index 9ccc5de..a33a28e 100644 --- a/bin/multi_server.dart +++ b/bin/multi_server.dart @@ -25,7 +25,7 @@ main() async { app.responseFinalizers.add(gzip()); // Cache static assets - just to lower response time - await app.configure(cacheResponses(filters: [new RegExp(r'images/\.*')])); + await app.configure(cacheResponses(filters: [new RegExp(r'images/.*')])); // Start up multiple instances of our main application. await app.spawnIsolates(cluster, count: nInstances); diff --git a/bin/scaled_server.dart b/bin/scaled_server.dart index dc1a333..6e93f22 100644 --- a/bin/scaled_server.dart +++ b/bin/scaled_server.dart @@ -57,7 +57,7 @@ void isolateMain(List args) { // // Here is an example of response caching: // https://github.com/angel-dart/multiserver/blob/master/example/cache.dart - await app.configure(cacheResponses(filters: [new RegExp(r'images/\.*')])); + await app.configure(cacheResponses(filters: [new RegExp(r'images/.*')])); var server = await app.startServer( InternetAddress.ANY_IP_V4, app.properties['port'] ?? 3000);