I am not sure, i am using "'Content-Length':Buffer.isBuffer(body)? body.length: Buffer.byteLength(body)" to send content-length infomation. But maybe i missed any other header infomation. Thats my whole header for static files:
'Content-Type': type, 'Cache-Control': 'public,max-age='+expire_time, 'Expires': expire, 'Content-Length':Buffer.isBuffer(body)? body.length: Buffer.byteLength(body) On 1 Apr., 02:14, Mark Hahn <m...@hahnca.com> wrote: > Could you be returning a content-length header and not returning exactly > that many bytes? > > > > > > > > On Sat, Mar 31, 2012 at 1:56 PM, s0urce <s0urce.ph...@gmail.com> wrote: > > The page, just keeps on loading, looks like anything haven't finished > > loaded, but in network tab, all files are done. (You know, the little > > loading sign at tab over favicon) > > > On 31 Mrz., 22:18, Mark Hahn <m...@hahnca.com> wrote: > > > What isnt loading? > > > > On Sat, Mar 31, 2012 at 1:17 PM, s0urce <s0urce.ph...@gmail.com> wrote: > > > > Sometimes my page just won't stop loading if i refresh it. I am using > > > > node with http and some self-made little framwork (express like). I > > > > tested all, but i think this is a native node.js problem. I have not > > > > really an idea. Mayby anything about timing problems with file opens? > > > > Any1 else got problems like this? thx > > > > > -- > > > > Job Board:http://jobs.nodejs.org/ > > > > Posting guidelines: > > > >https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > > > > You received this message because you are subscribed to the Google > > > > Groups "nodejs" group. > > > > To post to this group, send email to nodejs@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > nodejs+unsubscr...@googlegroups.com > > > > For more options, visit this group at > > > >http://groups.google.com/group/nodejs?hl=en?hl=en > > > -- > > Job Board:http://jobs.nodejs.org/ > > Posting guidelines: > >https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > > You received this message because you are subscribed to the Google > > Groups "nodejs" group. > > To post to this group, send email to nodejs@googlegroups.com > > To unsubscribe from this group, send email to > > nodejs+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/nodejs?hl=en?hl=en -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en