Dear Experts,

I wanted to write this:

proxy_cache_valid 200 5m;
if ($host ~ foo) {
  proxy_cache_valid 200 30d;
}

but proxy_cache_valid is not allowed in "if" blocks.
Is there some work-around to have different cache validity times
for different hosts, in a caching proxy?


Thanks, Phil.




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

Reply via email to