angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.12k stars 1.24k forks source link

Why compression is not working #2590

Open minchopm opened 7 years ago

minchopm commented 7 years ago
Item Version
generator-angular-fullstack 3.8.0
Node 6.11.0
npm 3.10.7
Operating System / Windows 10
Item Answer

Babel HTML SCSS ui-router Client Tests | Jasmine / Mocha DB | MongoDB / SQL Auth | Y

By default, there is a compression midlewhere installed and running into express framework, but none of my files or requests are gzip-ed. Do you have some explanation about that issue?

Awk34 commented 7 years ago

generator-angular-fullstack | x.x.x

minchopm commented 7 years ago

"generatorVersion": "3.8.0",

minchopm commented 7 years ago

I have an idea why it is happen but don't know how to fix it. There is a transfer-encoding: chunked header set from somewhere and that header blocked content-length header and the files cannot be compressed with gzip. Do you have any idea how to turn that header off?