<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I have multiple subdomains pointing to one varnish instance. I read in the documentation that PCRE regex should be used. I believe the regex I have below should return true when the request url is “<a href="http://internal.my.com/any/thing" class="">http://internal.my.com/any/thing</a>” and the 15s ttl should be set. I’ve tried just (req.url ~ “<a href="http://internal.my.com" class="">internal.my.com</a>”) as well because I read that it should match if any part of the request url. Help is appreciated! Thanks!</div><div class=""><br class=""></div><div class="">-Ryan</div><div class=""><br class=""></div><div class=""># Cache for a longer time if the <a href="http://internal.my.com" class="">internal.my.com</a> URL isn't used</div><div class="">sub vcl_fetch {</div><div class="">  if (req.url ~ "^[(http:\/\/)|(https:\/\/)]*internal\.my\.com.*"){</div><div class="">    set beresp.ttl = 15 s;</div><div class="">  } else {</div><div class="">    set beresp.ttl = 300 s;</div><div class="">  }</div><div class="">}</div></body></html>