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
Post a Comment