Sunday, 8 September 2013

Node.js & Express: Serving text files in parts

Node.js & Express: Serving text files in parts

I have a webserver with node.js and express. When I serve a text file that
is big, it takes a lot of time to load into the browser. Imagine a 34 MB
text file being served to the client, he would have to download the 34 MB
only to check for something in the log file.
Is there something I could do about it? Serve it in parts perhaps? Like:
Part 1/10 - Part 10/10

No comments:

Post a Comment