Open tester9989 opened 12 years ago
.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
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"