updated stream headers

This commit is contained in:
Andris Reinman 2019-02-23 01:19:44 +02:00
parent 8b29d0919b
commit 898647b737

View file

@ -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) => {