Welcome! Log In Create A New Profile

Advanced

Can Nginx only cache reponse body while excluding some response headers?

yf chu
December 02, 2018 05:30AM
We all know that the cache feature in Nginx will cache all response content generated by upstream server. But I wonder whether there is a solution that only the response body is cached by Nginx while some response headers should not be cached and should be sent to client directly .I know that Nginx provides some cache-bypassing directives such as "proxy_no_cache","proxy_cache_bypass". These directives are not suitable for me as the hits pecentage will drop significantly if these directives are configured.





_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Can Nginx only cache reponse body while excluding some response headers?

yf chu December 02, 2018 05:30AM

Re: Can Nginx only cache reponse body while excluding some response headers?

Francis Daly December 07, 2018 05:24PM

Re:Re: Can Nginx only cache reponse body while excluding some response headers?

yf chu December 07, 2018 05:42PM

Re: Re: Can Nginx only cache reponse body while excluding some response headers?

Francis Daly December 07, 2018 06:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready