Angular2 GZIP issue when I run my app

前端 未结 1 1965
南旧
南旧 2020-12-20 07:12

I have an angular2 typescript app.

I host with Firebase and use cloudflare for speed, caching and protection.

The browser header says: accept-encoding:gzip,

相关标签:
1条回答
  • 2020-12-20 07:40

    Those gzips are meat for webservers that can use pregzipped files that they dont have to gzip it with every request or cache it. The js it then transfered compressed and the browser/cloudflare handles the rest. So you dont have to edit the script tags to use gzip or dont use it.

    But you can simply use nginx and enable gzip there (and dont use the .gz) for the few request from cloudflare.

    0 讨论(0)
提交回复
热议问题