openresty + srcache + redis + proxy_pass
#1. Openresty -> proxy_pass -> Asp.netA+ IIS 7.5 ,IIS compression enables . response header like following:
HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Thu, 10 Dec 2015 05:46:55 GMT
Check Redis , it's plain text.
#2. Openresty -> proxy_pass-> Varnish -> IIS 7.5+Asp.net response header like following:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Thu, 10 Dec 2015 03:15:17 GMT
X-Varnish: 26993298 25817401
Age: 8454
Via: 1.1 varnish-v4
Content-Length: 62319
Connection: keep-alive
Accept-Ranges: bytes
Check Redis , it's gziped contents
how can I save gziped contents into Redis under #1 condition
I guess Transfer-Encoding: chunked maybe cause it.
Thanks