Varnish Exclude URL with Regex


Hi there,

I want to exclude any caching of my google feed xml files. They look like this:


I want to use a regular expression to exclude every file from varnish… here is my best guess.


Would this work?

Best regards,



You’re super close – you need to escape the forward slashes in regex. See


Lucas, thanks so much for the reply! Makes sense. Seems to be working perfectly!!