scottcorgan / pushstate-server

Static file server that works with HTML5 Pushstate.
421 stars 35 forks source link

Gzip compression #50

Closed bensleveritt closed 7 years ago

bensleveritt commented 7 years ago

Is there any way to turn Gzip on? I'm using pushstate-server cli to test final build sizes for a react app, and it'd be good to know if gzipping will help reduce the sizes significantly.

scottcorgan commented 7 years ago

There is a default compression set to gzip your responses https://github.com/scottcorgan/pushstate-server/blob/master/index.js#L25.

Is there something that indicates otherwise?

bensleveritt commented 7 years ago

Ah, I'm sorry. It's a misunderstanding on my part. I was looking at Woff/Woff2 files and of course they're already compressed.

Nevermind.

(Thanks for the quick response tho)