diff options
author | Tom Hunkapiller <tom@furycodes.com> | 2015-04-11 09:54:40 -0500 |
---|---|---|
committer | Tom Hunkapiller <tom@furycodes.com> | 2015-04-11 09:54:40 -0500 |
commit | 133188320a0a08ce92f95022bab93bcdb40443de (patch) | |
tree | 3e244a36a5911a9ea4a4bfa61fc204f43ebc3e3e | |
parent | 27aa71f3a4085140b83b1fa59d0f20debe1cc294 (diff) | |
download | etherpad-lite-133188320a0a08ce92f95022bab93bcdb40443de.zip |
fix: only match /javascript/* for caching middleware
-rw-r--r-- | src/node/hooks/express/static.js | 2 |
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. |