Welcome! Log In Create A New Profile

Advanced

Re: sent_http_HEADER Volatile under Nginx 1.2.4

Jonathan Matthews
December 18, 2013 07:44AM
On 16 December 2013 12:38, Paul Taylor <me@ptylr.com> wrote:
> Hi Maxim,
>
> Ok, thanks for the clarification.
>
> So to confirm, we are looking for the value of the sent header from the
> upstream, to identify whether the content should be served from the cache,
> or the upstream. Does this therefore mean that the code that we have below,
> will check for the X-No-Cache header, and if present, will always render the
> content from the upstream (no cache), and that if not present, will enable
> the result to be cacheable? If so, and it is only the reporting of the
> X-Cache-Status value that is rendering a false value, then this will give us
> what we want?
>
> If not, then what suggestions would you have for caching only on the basis
> of this sent http header being present?

I may have missed in this thread why the earlier suggestion of

proxy_no_cache $upstream_http_x_no_cache

doesn't work for you. It does seem to meet your requirement of
"caching only on the basis of this sent [== upstream?] http header
being present" ...

J

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

sent_http_HEADER Volatile under Nginx 1.2.4

ptylr December 12, 2013 02:22PM

Re: sent_http_HEADER Volatile under Nginx 1.2.4

Maxim Dounin December 12, 2013 02:34PM

Re: sent_http_HEADER Volatile under Nginx 1.2.4

ptylr December 12, 2013 06:38PM

Re: sent_http_HEADER Volatile under Nginx 1.2.4

Maxim Dounin December 13, 2013 01:30PM

Re: sent_http_HEADER Volatile under Nginx 1.2.4

Maxim Dounin December 18, 2013 07:44AM

Re: sent_http_HEADER Volatile under Nginx 1.2.4

Jonathan Matthews December 18, 2013 07:44AM

Re: sent_http_HEADER Volatile under Nginx 1.2.4

ptylr December 18, 2013 07:44AM

Re: sent_http_HEADER Volatile under Nginx 1.2.4

ptylr December 18, 2013 07:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 245
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready