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.

Share
Published by
Sonali R

How to create an AWeber form in AMP

If you want to add an AWeber form in AMP then first you need to…

3 years ago

How to setup webpushr notification in AMP

Webpushr is the fastest growing web push notifications platform that marketers love & developers rely…

3 years ago

How to add Adobe Analytics in AMP

Follow these steps to add Adobe Analytics in AMP Step 1: Go to WordPress Admin Area -> AMP…

3 years ago

What is the CWV plugin all about

Core Web Vitals are the subset of Web Vitals that apply to all web pages,…

4 years ago

How to fix “Alternate page with proper canonical tag” Page Index issue in Google Search Console

The following reasons can be shown for non-indexing. Server error (5xx) Your server returned a 500-level…

4 years ago

Google Analytics ( GA4 ) integration in AMPforWP

We have added the Google Analytics 4 ( GA 4 ) integration in AMPforWP v1.0.80.…

4 years ago