Few Tips to resolve AMP issues
-
Cache PLUGINS
Some cache plugins, by default, cache the stories and minify JS and CSS. (WP-Rocket for exemple). It causes AMP issues in the search console verification tool.Tip : Create a rule in the cache plugin for not caching (&minify) all the URL’s starting by /web-stories/.
To make this, add (.*) at the end.
Exemple : /web-stories/(.*) means all URLs starting by https://www.domain.com/web-stories/ won’t be cached or minifiedGoogle will cache your stories anyway. It’s useless to cache them with your own plugin.
CDN
If you use a CDN service, like CloudFlare for exemple.
You have to create the same rule for all your stories. Because CDN minify to.1.To do this, you have a tutorial here : https://support.cloudflare.com/hc/en-us/articles/200172316-How-do-I-include-or-exclude-a-specific-URL-from-Cloudflare-s-page-rules-
2.You will have to add this line to exclude all your stories URLs : https://www.yourdomain.com/web-stories/*
3. Select Cache level on Bypass and for Auto Minify, uncheck HTML, CSS and JS
After all these steps, purge all cache on cloudflare first and then, purge all cache on your website.
Issues about AMP validation should vanish.
Have fun,
- The topic ‘Few Tips to resolve AMP issues’ is closed to new replies.