Re: how can i set diffrent proxy cache time by diffrent uri
Hello! On Mon, Feb 15, 2016 at 05:11:40AM -0500, vps4 wrote: > i tried to use like this > > server { > > set $cache_time 1d; > > if ($request_uri = "/") { > set $cache_time 3d; > } > > if ($request_uri ~ "^/other") { > set $cache_time 30d; > } > > loca
how can i set diffrent proxy cache time by diffrent uri
i tried to use like this server { set $cache_time 1d; if ($request_uri = "/") { set $cache_time 3d; } if ($request_uri ~ "^/other") { set $cache_time 30d; } location / { try_files $uri @fetch; } location @fetch { proxy_cache_val