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

4x4 Matrix in Python -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -

python - PyInstaller UAC not working in onefile mode -