exclude varnish caching the control panel

You can only exclude relative urls from memory and not absolute urls

The exclude should go in the default.vcl file

For yours it would look like this

Code:
sub vcl_recv {
...
   if (req.url ~ "^/admin.php") {
      return (pass);
   }
...
}

It needs to go in the sub vcl_recv vcl section

Again this is all from memory as its been many years since I used varnish (so this may not be quite correct) as I dropped it when everything went https......
 
Back
Top Bottom