Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gzip #27

Open
tester9989 opened this issue Jul 24, 2011 · 1 comment
Open

gzip #27

tester9989 opened this issue Jul 24, 2011 · 1 comment

Comments

@tester9989
Copy link

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"

@cimnine
Copy link
Contributor

cimnine commented Aug 11, 2011

.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: #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants