Express: Serve pre-compressed static assets Express: Serve pre-compressed static assets express express

Express: Serve pre-compressed static assets


The connect-gzip-static module seems to do this. I haven't tested it yet.

It doesn't support dynamically decompressing assets where the client doesn't support compression, which means you need to keep an uncompressed copy of the asset on the server as well, and you have to make sure they are in sync.