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

gzip

Open tester9989 opened this issue 14 years ago • 1 comments

I added gzip support in .htaccess, but I still couldn't make it work. Is there any way to serve Gzip files using node-static?

ref : "AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript"

tester9989 avatar Jul 24 '11 15:07 tester9989

.htaccess is for apache, not for node.js, nor for node-static. You would have to implement gzip compression in node-static. Or find someone who does it for you. Maybe you could compress the data after calling node-static with one of those node compression libraries available. Tell us if your were successful.

PS: Read this Issue Report about GZIP compression: https://github.com/cloudhead/node-static/issues/20

cimnine avatar Aug 11 '11 18:08 cimnine