mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06: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
|
@ -83,7 +83,7 @@ exports.expressCreateServer = (hookName, args, cb) => {
|
|||
settings.skinName,
|
||||
'favicon.ico'
|
||||
);
|
||||
|
||||
res.setHeader('Cache-Control', `public, max-age=${settings.maxAge}`);
|
||||
res.sendFile(filePath, (err) => {
|
||||
// there is no custom favicon, send the default favicon
|
||||
if (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue