proxy_cache_background_update ignores regular expression match when updating
Roman Arutyunyan
arut at nginx.com
Thu Dec 6 18:04:18 UTC 2018
Hi,
On Thu, Dec 06, 2018 at 04:01:36PM +0300, Roman Arutyunyan wrote:
[..]
> This should solve the issue:
>
> location ~ /test/($<name>regular|expression)$ {
> proxy_pass http://127.0.0.1:8010/test/$name;
Sorry, the right syntax is of course this:
location ~ /test/(?<name>regular|expression)$ {
proxy_pass http://127.0.0.1:8010/test/$name;
> > proxy_cache test;
> > proxy_cache_background_update on;
> > proxy_cache_use_stale updating;
> > proxy_cache_valid 10s;
> > }
> > }
[..]
--
Roman Arutyunyan
More information about the nginx
mailing list