node.js - Streaming vs linking static files -


i'm looking advantages of streaming on linking static files, eg images, pdf.

to make question more clear, using node can stream files using

fs.createreadstream 

i can understand streaming videos etc why should stream static files. can provide href?

if static files available on url there's no need stream them using node. if node app wants return contents of static file hosted , served somewhere instead of streaming contents can return redirect file's url.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -