From 133188320a0a08ce92f95022bab93bcdb40443de Mon Sep 17 00:00:00 2001 From: Tom Hunkapiller Date: Sat, 11 Apr 2015 09:54:40 -0500 Subject: [PATCH] fix: only match /javascript/* for caching middleware --- src/node/hooks/express/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/hooks/express/static.js b/src/node/hooks/express/static.js index 7af54b5d..34fce29e 100644 --- a/src/node/hooks/express/static.js +++ b/src/node/hooks/express/static.js @@ -9,7 +9,7 @@ exports.expressCreateServer = function (hook_name, args, cb) { // Cache both minified and static. var assetCache = new CachingMiddleware; - args.app.all(/\/(javascripts|static)\/(.*)/, assetCache.handle); + args.app.all(/\/javascripts\/(.*)/, assetCache.handle); // Minify will serve static files compressed (minify enabled). It also has // file-specific hacks for ace/require-kernel/etc.