From 898647b7370a8d290b0a62245d68402950c0dfde Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Sat, 23 Feb 2019 01:19:44 +0200 Subject: [PATCH] updated stream headers --- lib/api/updates.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/api/updates.js b/lib/api/updates.js index a605c1f9..ce260343 100644 --- a/lib/api/updates.js +++ b/lib/api/updates.js @@ -206,7 +206,11 @@ module.exports = (db, server, notifier) => { req.connection.on('error', done); }; - res.writeHead(200, { 'Content-Type': 'text/event-stream' }); + res.writeHead(200, { + 'Content-Type': 'text/event-stream', + 'Cache-Control': 'no-cache', + 'X-Accel-Buffering': 'no' + }); if (lastEventId) { loadJournalStream(db, req, res, user, lastEventId, (err, info) => {