kucharzyk / spring-angular2-starter

PROJECT DISCONTINUED
MIT License
210 stars 65 forks source link

GZIP compression is not working #35

Closed kucharzyk closed 8 years ago

kucharzyk commented 8 years ago

It looks like GZIP compression is not working properly.

It's configured for tomcat but it's not working for some reason

# EMBEDDED SERVER CONFIGURATION
server:
    compression:
      enabled: true
      min-response-size: 1024
      mime-types: text/html, text/xml, text/plain, text/css, application/javascript, application/json
kucharzyk commented 8 years ago

Everything was working ok with gzip

I've found the following solution for my problem:

You're probably using some sort of antivirus (maybe ESET). Try turning off HTTP protection.

With Eset you can try something like: 
Advanced -> Internet and email -> Web Access Protection - turn off.

http://stackoverflow.com/questions/33563312/spring-boot-http-response-compression-doesnt-work-for-some-user-agents

lin557 commented 5 years ago

thanks. Solved my problem, it is indeed caused by ESET. Both nginx and springboot prompt ”X-Content-Encoding-Over-Network gzip“. now is ok.