You could use
fs.createReadStream(file).pipe(response)
which might improve performance, but if you're worried about this kind of performance, I suggest you serve static files using a static file server or a CDN.fs.createReadStream(file).pipe(response)
which might improve performance, but if you're worried about this kind of performance, I suggest you serve static files using a static file server or a CDN.以上就是What is the correct way to stream an index page to a client?的详细内容,更多请关注web前端其它相关文章!
前端开发相关广告投放 更专业 更精准
联系我们