yf chu
December 07, 2018 05:42PM
A request is sent from client to nginx, if it did not hit the cache, I hope nginx only caches the response body returned by upstream and send the headers and response body returned by upstream to client.
If the request hit the cache, I hope nginx can generate new headers and send them with the cached response body to client.








At 2018-12-08 06:23:54, "Francis Daly" <francis@daoine.org> wrote:
>On Sun, Dec 02, 2018 at 06:29:33PM +0800, yf chu wrote:
>
>Hi there,
>
>> 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'm afraid I don't understand what exactly you are asking.
>
>Could you give more details, or an example?
>
>Such as:
>
>request from client to nginx; not in cache, so nginx asks upstream which
>returns headers+body. What do you want nginx to store in the cache,
>and what should nginx send to the client?
>
>same request from client to nginx; it is in the cache. What should nginx
>send to the client?
>
>The answer to that might make your question clearer.
>
>Thanks,
>
> f
>--
>Francis Daly francis@daoine.org
>_______________________________________________
>nginx mailing list
>nginx@nginx.org
>http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
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: 86
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