summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hunkapiller <tom@furycodes.com>2015-04-11 09:54:40 -0500
committerTom Hunkapiller <tom@furycodes.com>2015-04-11 09:54:40 -0500
commit133188320a0a08ce92f95022bab93bcdb40443de (patch)
tree3e244a36a5911a9ea4a4bfa61fc204f43ebc3e3e
parent27aa71f3a4085140b83b1fa59d0f20debe1cc294 (diff)
downloadetherpad-lite-133188320a0a08ce92f95022bab93bcdb40443de.zip
fix: only match /javascript/* for caching middleware
-rw-r--r--src/node/hooks/express/static.js2
1 files changed, 1 insertions, 1 deletions
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.