Update routes.dart

This commit is contained in:
Tobe O 2017-02-26 19:21:52 -05:00 committed by GitHub
parent 7fbd4addfc
commit 04dcc244ff

View file

@ -18,7 +18,9 @@ configureAfter(Angel app) async {
// await app.configure(new PubServeLayer());
// Static server at /web or /build/web, depending on if in production
await app.configure(new VirtualDirectory());
//
// In production, `Cache-Control` headers will also be enabled.
await app.configure(new CachingVirtualDirectory());
// Set our application up to handle different errors.
var errors = new ErrorHandler(handlers: {