Welcome! Log In Create A New Profile

Advanced

Re: Using proxy_cache_background_update

Maxim Dounin
February 26, 2017 10:04PM
Hello!

On Sun, Feb 26, 2017 at 01:08:02PM -0500, jeanpaul wrote:

> I stripped down my configuration and removed 'unneeded' parts to reproduce.
>
> I'm able to reproduce it with the following settings:
>
> location / {
> # Added to mitigate the issue. Removed for testing
> #rewrite ^/index.html$ / break;
>
> proxy_pass http://backends;

[...]

> # Removing the if construction and leaving the "expires" in place
> solves the issue!
> if ($no_cache = "") {
> expires 1s;
> }

Ok, thanks for tracing this, looks clear enough now. Please try
the following patch:

diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -2571,6 +2571,7 @@ ngx_http_subrequest(ngx_http_request_t *
sr->method_name = r->method_name;
sr->loc_conf = r->loc_conf;
sr->valid_location = r->valid_location;
+ sr->content_handler = r->content_handler;
sr->phase_handler = r->phase_handler;
sr->write_event_handler = ngx_http_core_run_phases;


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

Using proxy_cache_background_update

Jean-Paul Hemelaar February 26, 2017 04:46AM

Re: Using proxy_cache_background_update

Maxim Dounin February 26, 2017 08:16AM

Re: Using proxy_cache_background_update

jeanpaul February 26, 2017 01:08PM

Re: Using proxy_cache_background_update

Maxim Dounin February 26, 2017 10:04PM

Re: Using proxy_cache_background_update

jeanpaul February 27, 2017 05:53AM

Re: Using proxy_cache_background_update

Maxim Dounin February 27, 2017 05:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
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