Fixed image regexp
This commit is contained in:
parent
b450c6380b
commit
caa2842efa
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ main() async {
|
||||||
app.responseFinalizers.add(gzip());
|
app.responseFinalizers.add(gzip());
|
||||||
|
|
||||||
// Cache static assets - just to lower response time
|
// 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.
|
// Start up multiple instances of our main application.
|
||||||
await app.spawnIsolates(cluster, count: nInstances);
|
await app.spawnIsolates(cluster, count: nInstances);
|
||||||
|
|
|
@ -57,7 +57,7 @@ void isolateMain(List args) {
|
||||||
//
|
//
|
||||||
// Here is an example of response caching:
|
// Here is an example of response caching:
|
||||||
// https://github.com/angel-dart/multiserver/blob/master/example/cache.dart
|
// 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(
|
var server = await app.startServer(
|
||||||
InternetAddress.ANY_IP_V4, app.properties['port'] ?? 3000);
|
InternetAddress.ANY_IP_V4, app.properties['port'] ?? 3000);
|
||||||
|
|
Loading…
Reference in a new issue