Problem with gzip using nginx-ingress in GKE


#1

Hello,

I have a problem with nginx-ingress and gke, I enable gzip, my site is very faster but, the gzip header not show. I Thinking is becouse is google header as bellow:

HTTP/2 200 
content-type: text/html; charset=utf-8
content-length: 83462
set-cookie: session=b3631548-fd25-4226-9ab8-d680b7cafa6f.vPCkuMihAO9axtpJVo_qVggZ9Eg; Expires=Fri, 25-Jan-2019 16:19:11 GMT; HttpOnly; Path=/
date: Tue, 22 Jan 2019 16:19:11 GMT
server: 0.0.0.0
via: 1.1 google
alt-svc: clear

Has anyone had this problem? I believe the problem is not in the configuration of nginx or kubernetes but of the encapsulation of the request by GKE, I just do not know which way to go.

UPDATE:
I just discovered that GKE does not provide data compressed by gzip if the backend is not already served the compressed files, in that case I really do not know if it is easier to do nginx in the hand and provide the services