about summary refs log tree commit diff
path: root/streaming/index.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-01-25 10:04:41 +0100
committerThibaut Girka <thib@sitedethib.com>2020-01-25 10:04:41 +0100
commit61f699c0e907d8525190b115fc619296b4affa98 (patch)
tree9ed5cc5b4260565bebab4482b3266b911204fa79 /streaming/index.js
parent0be67df4f0a64367d9e376b06bd3fd2fb9ca8195 (diff)
parentf816da9c6474ddf437681fbf7f5346672436ccdf (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'streaming/index.js')
-rw-r--r--streaming/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/streaming/index.js b/streaming/index.js
index 64e71f353..1f95a4626 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -442,8 +442,11 @@ const startWorker = (workerId) => {
     const accountId = req.accountId || req.remoteAddress;
 
     res.setHeader('Content-Type', 'text/event-stream');
+    res.setHeader('Cache-Control', 'no-store');
     res.setHeader('Transfer-Encoding', 'chunked');
 
+    res.write(':)\n');
+
     const heartbeat = setInterval(() => res.write(':thump\n'), 15000);
 
     req.on('close', () => {