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

Add command line option to serve gzip files

Open yuri-karadzhov opened this issue 11 years ago • 2 comments

It would be helpful to have a command line option which do the same as { gzip: true }

yuri-karadzhov avatar Sep 24 '14 12:09 yuri-karadzhov

Running static -h lists --gzip as the argument for this.

However, it doesn't seem to actually do anything, at least for me.

doot0 avatar Oct 15 '14 11:10 doot0

Works for me, except you need to have the uncompressed file available too: https://github.com/cloudhead/node-static/issues/143

(As mentioned on the issue, you can put an empty file in for the uncompressed version, which is also an easy way to confirm the gzip mode is actually working.)

voltrevo avatar Dec 18 '14 23:12 voltrevo