-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 11/28/2013 06:29 PM, Alexandre wrote: > > I will wish to invalidate my cache using a regex. > > example: ^/image.php?a=1&b=2* > > I would like to disable all url starting with ^/image.php?a=1&b=2 > > Do you have an idea for my problem?
The '*' in a regular expression is not like a file glob, it means that the character before it, in your case the '2', can appear 0 or more times. So your regex matches anything starting with: /image.php?a=1&b= If you don't care what comes after 'b=2', you can just end the regex there -- a regex doesn't have to describe a string all the way from beginning to end. ^/image.php?a=1&b=2 ... should do what you want. Best, Geoff - -- ** * * UPLEX - Nils Goroll Systemoptimierung Scheffelstraße 32 22301 Hamburg Tel +49 40 2880 5731 Mob +49 176 636 90917 Fax +49 40 42949753 http://uplex.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCAAGBQJSmGXkAAoJEOUwvh9pJNURmLkQAIxu/g4T27Fr+LcYoJGFlAPE cGSKwaVGVaKKnIWTIjgGIsG3s45sAk40y1KxR1LqyYHnLa9bkz4U0+ifCVthT2wM +SNo7U7qkbywwJNbkMJjRHGXi+sIOf6EnkR67SBfynvmkVtQhOE0X0HJZgHQ6hvA h7wcMz2t/lPuESGs1mt1y60+HFFL76/lJOQXm7JbA9GBKlA3ibsMbW2f90ZUDQRG AOumsa8O8BeoGLn4dYfdmWwhG+wpIo3ztAPy7cZx9u1eY4KulhYJ90K3ErBvvr1b CAXbk3BMvCFH/HPbHe2NJtyk26MksQ90yoYYxN/F8rCTFhUCHrlD2iVjrHGNndaN sPCuSMEDiQR95VYWXdT81IkXBLBMYTJvLx0n0p95XH40dkhUf5hV1gS6akuiq9nC d6MeoX1qWOYFIIJ1gEGiJRf38Nx0yr/+I+zS118FfmgMZeGccjogMdgpQqpSU3jo IPNISPIwZlIRuCUn0Da/6Sykvosr9lhET2kVhDlKZ1b0Q4c8GEFIWQCOJpBGd6Mp gcqne0oRW3arOUwaeEkpTTibqFZdSCUp24tJKvgJUhowfzCFlOWUYziiVq4FvRo3 qFqp8ZT0ZqnCid7bnV7xvZ43rOOnBVb+mwYeUgsa4FpYxtvfZQznich7uKH/pnQQ kVXVQ+X7ML3NVOzzurvU =I/IM -----END PGP SIGNATURE----- _______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
