I am trying to write a servlet to invalidate cache and the code is not working as the distribution request is not working
@Reference
private Distributor distributor;
ResourceResolver resolver = ...; // the resource resolver used for authorizing the request
String agentName = "publish"; // the ...