mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
performance: maxAge for favicon and plugin definitions (#4761)
This commit is contained in:
parent
09e9c36098
commit
483f4344c2
2 changed files with 3 additions and 2 deletions
|
@ -65,7 +65,8 @@ exports.expressCreateServer = async (hookName, args) => {
|
|||
clientPlugins[name] = {...plugins.plugins[name]};
|
||||
delete clientPlugins[name].package;
|
||||
}
|
||||
res.header('Content-Type', 'application/json; charset=utf-8');
|
||||
res.setHeader('Content-Type', 'application/json; charset=utf-8');
|
||||
res.setHeader('Cache-Control', `public, max-age=${settings.maxAge}`);
|
||||
res.write(JSON.stringify({plugins: clientPlugins, parts: clientParts}));
|
||||
res.end();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue