Merge pull request #2600 from devoidfury/fix/junk-binary-files

fix: only match /javascript/* for caching middleware
This commit is contained in:
John McLear 2015-04-11 16:00:02 +01:00
commit 25092fcb90
1 changed files with 1 additions and 1 deletions

View File

@ -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.