Chrome kills response when trying to transfer OGG files

I have a Node JS server that transfers (adds) OGG files to several HTTP responses with HTML5 audio on the other end. Everything works fine in Firefox, however Chrome seems to kill the answer after the first OGG file was written (but not weird Mp3).

Here is a snippet of the current code:

res.writeHead(200, {
    "Content-Type": "audio/ogg",
    'Pragma': 'no-cache',
    'Cache-Control': 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0',
    'Connection': 'keep-alive',
    'Transfer-Encoding': 'chunked',
});

res.write(audioData);

Any ideas?

+4
source share
1 answer

Unfortunately, for you the error is marked as:

Labels: StaleClosed Status: WontFix

for Chrome developers. You can always open a ticket and chase them :)

https://bugs.chromium.org/p/chromium/issues/detail?id=175281

+1
source

All Articles