Found the issue. The “hosts” field on the plugin configuration is mandatory, the plugin doesn’t get the hostname from the wordpress configuration, so if you leave it blank, all the PURGE request sent to the varnish will be missing the host. Maybe the configuration page needs a more clear explanation, it says that is only required if you use multiple domains, which apparently is not the case