Re: Nginx caching no header content-length

2016-03-02 Thread Maxim Dounin
Hello! On Wed, Mar 02, 2016 at 10:33:34PM +0530, Vikas Parashar wrote: [...] > don't know how to do it. Check your configuration for any modules which are expected to change content. Disable them (comment out relevant directives out or switch off in a particular location). In particular, ch

Re: Nginx caching no header content-length

2016-03-02 Thread Vikas Parashar
Thanks for your promot response. location /x { error_log /var/log/nginx/contenttroubleshooterror.log debug; #chunked_transfer_encoding off; #proxy_http_version 1.1; #proxy_buffering on; #proxy_pass_header Content-Length; proxy_pass http://tomcat:8080/x; proxy_cache my_cache; #

Re: Nginx caching no header content-length

2016-03-02 Thread Maxim Dounin
Hello! On Wed, Mar 02, 2016 at 09:58:26PM +0530, Vikas Parashar wrote: > I am using nginx(caching server) in front my tomcat. My tomcat is serving > header(content-length). But my nginx is not serving header content-length. > > However, i can put that header in my config with some static value t

Nginx caching no header content-length

2016-03-02 Thread Vikas Parashar
Hi, I am using nginx(caching server) in front my tomcat. My tomcat is serving header(content-length). But my nginx is not serving header content-length. However, i can put that header in my config with some static value then it will serve. But, in my case, the content length is coming from tomcat