Dispatcher Clear cache cURL no longer works. | Community
Skip to main content
Level 4
October 14, 2020
Solved

Dispatcher Clear cache cURL no longer works.

  • October 14, 2020
  • 2 replies
  • 2362 views

Hi, We use Curl to clear dispatcher cache. We issue command to ELB and ELB does the rest.

 

curl -H "CQ-Action: Delete" -H "CQ-Handle: /content/" -H "CQ-Path: /content/" -H "Content-Length: 0" -H "Content-Type: application/octet-stream" -H "Host:www-aem-dev.manulife.ca" http://manulife-dev65-2019april28-545949682.ca-central-1.elb.amazonaws.com/dispatcher/invalidate.cache

 

I can run it even from my local Terminal as this doe snot need any authentication. Now we are moving to Cloud Manager and suddenly the same command no longer works and I get 403

 

- Forbidden with error: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /dispatcher/invalidate.cache on this server.</p> </body></html>

 

I have not done any change in any of the allowedclient or invalidate parameters/files, it is literally same dispatcher code I am using.

Any pointer on how to fix this..?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayukh007

Added this in publish and author invalidate any file

 

 

/1
{
/glob "*.*"
/type "allow"
}

2 replies

joerghoh
Adobe Employee
Adobe Employee
October 14, 2020

In the dispatcher configuration the cache invalidation is typically constraint to a certain network / IP range. And that's probably configured differently now than it was before. Check the dispatcher configuration for the parameter "allowedClients" (see also the documentation at https://docs.adobe.com/content/help/en/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html).

When you migrate to AMS, your CSE will not allow you make this functionality available to everyone (when you issue these commands via the ELB, basically everyone can execute it, not only you).

 

HTH,

Jörg

Mayukh007Author
Level 4
October 14, 2020
Issue resolved...Had to add allow parameters in publish invalidate any file.
Mayukh007AuthorAccepted solution
Level 4
October 14, 2020

Added this in publish and author invalidate any file

 

 

/1
{
/glob "*.*"
/type "allow"
}