与gzip的Proxy_cache

我有2个nginx服务器:

Nginx-1 =原始服务器(css​​,image,json等)Nginx-2 = proxy_cache,proxy_pass

这两个服务器已经很好地沟通,proxy_cache是​​好的。 障碍是当我想在nginx-2服务器上做gzip的时候,

nginx-1:

curl -H "Accept-Encoding: gzip" -I http://example.com/appaux/m2017/theme_2/js/app-min.js HTTP/1.1 200 OK Server: nginx Date: Tue, 08 Aug 2017 07:39:38 GMT Content-Type: application/x-javascript Last-Modified: Wed, 21 Jun 2017 06:54:23 GMT Expires: Sat, 07 Oct 2017 07:39:38 GMT Cache-Control: max-age=5184000 Cache-Control: public Content-Encoding: gzip 

nginx的-2

 curl -H "Accept-Encoding: gzip" -I http://example.com/appaux/m2017/theme_2/js/app-min.js HTTP/1.1 200 OK Server: nginx Date: Tue, 08 Aug 2017 07:37:07 GMT Content-Type: application/x-javascript Content-Length: 1150 Connection: keep-alive Last-Modified: Wed, 21 Jun 2017 06:54:23 GMT Expires: Thu, 07 Sep 2017 07:37:07 GMT Cache-Control: max-age=2592000 X-Cache-Status: HIT Accept-Ranges: bytes 

有什么build议么?