node-static
node-static copied to clipboard
rfc 2616 compliant HTTP static-file server module, with built-in caching.
as a fully local static server, the responsing time is unacceptable slow for a 100kb image, is there any way that i can diagnose what make it so slow? 
The `[ERR_HTTP_HEADERS_SENT]` error happens no matter how much or how little I add or remove to my code. even just the basic server, ``` var ns = new (require('node-static')).Server('./pub'); httpserver...
Hey 👋 I notice its been a while since a new version of node-static has been pushed to NPM, and the version that currently exists there contains the package [minimist](https://www.npmjs.com/package/minimist)...
I got some errors in my console: ``` Range request exceeds file boundaries, goes until byte no 32768 against file size of 450 bytes Error: Range request present but invalid,...
``node-static`` is spamming console.error with useless stack traces when receiving "invalid" range headers and the like. It would be nice if those warning could at least be intercepted, so they...
Hi, As issues had not received feedback here and the latest commit 3 years ago, I went ahead to make a [fork](https://github.com/brettz9/node-static) and publish it as [@brettz9/node-static](https://www.npmjs.com/package/@brettz9/node-static). Besides making a...
Is there any means, whether through a generic filter by file name, or by config specifically targeting hidden files/folders, that one may prevent/enable hidden files from being served? Thanks!
It'd be handy if your cli had a built-in [`open`](https://www.npmjs.com/package/open) option so one wouldn't have to resort to the Node API...
I'd essentially like to create a throttled server. I thought I could do something like this: ``` require('http').createServer(function (request, response) { request.addListener('end', function () { setTimeout(function () { fileServer.serve(request, response);...
I get an error when request a .mp4 file using Chrome and Express: ``` Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at node-static.js:125:17 ``` My...