From 85fac80a6d3f84d0016aed411c23d11304971b1a Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Sun, 27 Nov 2011 14:47:36 -0500 Subject: [PATCH] Put staticCache back in --- TODO.md | 1 - server.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 97b7331..2d40912 100644 --- a/TODO.md +++ b/TODO.md @@ -8,7 +8,6 @@ * test new interface in browsers * compress assets * fix issues with deploy -* get staticCache back in # shared version only diff --git a/server.js b/server.js index caab64e..818712d 100644 --- a/server.js +++ b/server.js @@ -73,6 +73,7 @@ connect.createServer( }); }), // Otherwise, static + connect.staticCache(), connect.static(__dirname + '/static', { maxAge: config.staticMaxAge }), // Then we can loop back - and everything else should be a token, // so route it back to /index.html @@ -82,7 +83,6 @@ connect.createServer( next(); }); }), - // And then let static take over connect.static(__dirname + '/static', { maxAge: config.staticMaxAge }) ).listen(config.port, config.host);