varnish regex

Vitaly Burshteyn vburshteyn at
Wed Nov 10 17:56:43 CET 2010

Hi folks,


I have a set of url's that I need to make sure that varnish does cache.
The url patern looks like this:




if (req.url ~ "/r/*/") {








if (req.url ~ "^/r/\d+/$") {





Sorry about this question, but I am not sure how varnish processes regex


Vitaly Burshteyn

Senior Network Engineer, Theatre Direct International

729  7th Avenue

New York, New York 10019

Phone: 212.817.9117

Cell# 917-701-5732


The information contained in this transmission may contain privileged 
and confidential information.  It is intended only for the use of the 
person(s) named above. If you are not the intended recipient,  you are 
hereby notified that any review, dissemination, distribution or 
duplication of this communication is strictly prohibited. If you are 
not the intended recipient, please contact the sender by reply email 
and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list