Home About Blog

Can I configure Varnish to not interfere with a request?

If you have a request you don’t want to be interfered with by Varnish, you can utilize Varnish’s pipe mode. Pipe mode essentially turns Varnish into a simple TCP proxy, and no other VCL subroutine will ever get called.

Here is an example of how to pipe a request:

if (req.url ~ "some_url_to_pipe") {
    return (pipe);