varnish regular expression for url

Ajay Kamble ajay.kamble.ak at gmail.com
Thu May 3 10:18:18 UTC 2018


Hello All,

Need a help in creating a vcl rule to cache specific pages. Ask is if url
contain

/order/{x}/{y}

cache it (now x and y is random string which may contain alphanumeric and
special char)

do not cache anything below

/order/{x}/order/{x}/{y}/{z}/order/{x}/{y}/{z}/.../{n}

thank you for taking look.
Aj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20180503/9122c45c/attachment.html>


More information about the varnish-misc mailing list