title: How to make varnish not cache a certain folder
body: <p>I am currently trying to setup a simplesamlphp authentication for my website but during the configuration I keep running into a redirect loop when logging in as administrator. I came to the conclusion it was because a session could not be initiated which I think was being caused by the simplesaml folder being cached. I'm trying to make it so the simplesaml folder on my server is not cached. I have edited the default.vcl file on my server and have the following setup</p>
  
  <pre><code>  # Do not cache these paths.
  
  
  if (req.url ~ "^/status\.php$" ||
    req.url ~ "^/update\.php" ||
    req.url ~ "^/install\.php" ||
    req.url ~ "^/batch/.*$" ||
    req.url ~ "^/admin" ||
    req.url ~ "^/admin/.*$" ||
    req.url ~ "^/user" ||
    req.url ~ "^/user/.*$" ||
    req.url ~ "^/users/.*$" ||
    req.url ~ "^/info/.*$" ||
    req.url ~ "^/flag/.*$" ||
    req.url ~ "^.*/ajax/.*$" ||
    req.url ~ "^.*/ahah/.*$" ||
    req.url ~ "^/simplesaml/.*$" ||
    req.url ~ "^/saml_login"){
     return (pass);
    }
  </code></pre>
  
  <p>As you can see I have added the simplesaml folder to not be cached but it won't work. I'm struggling to see where I'm going wrong.</p>
  
  <p>Any help is welcome. Thanks!</p>