Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Dispatcher Clear cache cURL no longer works.

Avatar

Level 4

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.cac...

 

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..?

1 Accepted Solution

Avatar

Correct answer by
Level 4

Added this in publish and author invalidate any file

 

 

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

View solution in original post

3 Replies

Avatar

Employee Advisor

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-co...).

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

Avatar

Level 4
Issue resolved...Had to add allow parameters in publish invalidate any file.

Avatar

Correct answer by
Level 4

Added this in publish and author invalidate any file

 

 

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