Clicky

  1. Home
  2. Extension & Themes
  3. Purge AMP CDN Cache
  4. Troubleshoot Purge AMP CDN clear Cache errors

Troubleshoot Purge AMP CDN clear Cache errors

Once you download and install Purge AMP CDN Cache extension it will create this file in the main directory like below the screenshot.

1. First, you should check a .well-known folder is available or not in your main domain directory.

If it is not available on your main domain directory then you can download and place it in your main domain directory you can download this zip file Click Here.

2. Need to check the below code is present in your main domain directory .htaccess file or not.
# BEGIN PurgeCDN

AddType text/plain .pub
Header add Cache-Control "max-age=300, public"
SetEnvIfNoCase User-Agent .*google.* search_robot
SetEnvIfNoCase User-Agent .*yahoo.* search_robot
SetEnvIfNoCase User-Agent .*bot.* search_robot
SetEnvIfNoCase User-Agent .*ask.* search_robot
Allow from env=search_robot

# END PurgeCDN

If not present then place the above code at the end of the .htaccess file.

In .well-known folder there will be public key named “apikey.pub” followed by amphtml folder.

That’s it for this tutorial!

We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.

Ask your Questions Directly!
If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!
Updated on February 5, 2020

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support

Leave a Comment