mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
CachingMiddleware: Asyncify
This commit is contained in:
parent
0284d49522
commit
f86df5322e
2 changed files with 99 additions and 112 deletions
|
@ -31,7 +31,7 @@ const getTar = async () => {
|
|||
exports.expressCreateServer = async (hookName, args) => {
|
||||
// Cache both minified and static.
|
||||
const assetCache = new CachingMiddleware();
|
||||
args.app.all(/\/javascripts\/(.*)/, assetCache.handle);
|
||||
args.app.all(/\/javascripts\/(.*)/, assetCache.handle.bind(assetCache));
|
||||
|
||||
// Minify will serve static files compressed (minify enabled). It also has
|
||||
// file-specific hacks for ace/require-kernel/etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue