send a gzipped index.html if a directory is requested #12

Closed
obazoud opened this Issue Oct 18, 2011 · 1 comment

Comments

Projects
None yet
2 participants

obazoud commented Oct 18, 2011

When I use express + gzippo, http://www.mywebsite.com/index.html is compressed but not http://www.mywebsite.com/
As I can see in source, if filename is a directory, you delegate it to express.
I think that it should be interesting to try to send index.html, it if exists, and gzip it.
Let me know what you think.

Owner

tomgco commented Nov 21, 2011

This is because gzippo doesn't support streaming files only static content files. This is being worked into a new version of connect which express is based on.

tomgco closed this Nov 21, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment