Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_background_update after cache expiry

April 05, 2017 10:06AM
Hi,

I have a similar issue:
http://mailman.nginx.org/pipermail/nginx/2017-March/053198.html

I noticed (using tcpdump) that all data except the last package is send
immediately.
Can you verify it that's happening in your case as well?

JP

On Wed, Apr 5, 2017 at 1:32 PM, IgorR <nginx-forum@forum.nginx.org> wrote:

> Hello,
>
> I'm trying to configure nginx to use proxy_cache_background_update but it
> seems like after expiry it still waits for the full roundtrip to the
> backend, returning a MISS in X-Cache-Status. What am I MISSing?
>
> I'm using nginx 1.11.12 under ubuntu 14.04 running inside docker, but
> hopefully this is too much detail.
>
> location ~ ^/?(\d+/[^/]+)?/?$
> {
> expires 20s;
>
> proxy_cache app_cache;
> proxy_cache_lock on;
>
> proxy_cache_bypass $http_upgrade;
>
> proxy_pass http://172.17.0.2:5000;
> proxy_http_version 1.1;
> error_log /nginxerror.log debug;
>
> add_header X-Cache-Status $upstream_cache_status;
>
> proxy_cache_use_stale error timeout updating http_500 http_502 http_503
> http_504;
> proxy_cache_background_update on;
>
> break;
> }
>
> NB: This is a duplicate of my so question, I was kindly advised on the
> nginx
> IRC to repost here for better chances, the original question is here:
> http://stackoverflow.com/questions/43223993/nginx-
> proxy-cache-background-update-after-cache-expiry
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,273417,273417#msg-273417
>
> _______________________________________________
> 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

proxy_cache_background_update after cache expiry

IgorR April 05, 2017 07:32AM

Re: proxy_cache_background_update after cache expiry

jeanpaul April 05, 2017 10:06AM

Re: proxy_cache_background_update after cache expiry

Maxim Dounin April 05, 2017 10:54AM

Re: proxy_cache_background_update after cache expiry

IgorR April 06, 2017 03:25AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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