Link - Regular expression http purging with varnish
Just a quick note to self about some documentation on how to purge the Varnish cache with regular expressions in the purge urls, untested by me at this point in time.
. However, this way of implementing purge does not support wildcard purge. If you want to do that, use something like: acl purge { "localhost"; "192.0.2.14"; } sub vcl_recv { if (req.request == "PURGE") { if (!client.ip ~ purge) { error 405 "Not allowed."; } purge("req.url ~ " req.url); } where the URL is then a regular expression to purge.
Läs mer: VCLExamplePurging – Varnish