node-static icon indicating copy to clipboard operation
node-static copied to clipboard

Sending .gz files requires the uncompressed file to exist too

Open voltrevo opened this issue 10 years ago • 0 comments

If I have a browser which supports gzip and I launch node-static with --gzip, and index.html.gz is available, it still won't work unless the regular index.html is available too.

Is this intentional? I'd like to only have the zipped files on the server, and not their uncompressed counterparts.

A possible workaround right now is to provide an empty file on disk as a stand-in for the uncompressed document, but that's pretty hacktastic.

voltrevo avatar Dec 15 '14 06:12 voltrevo