• Resolved antoinedaoust

    (@antoinedaoust)


    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 minified

    Google 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,

    • This topic was modified 2 years, 11 months ago by antoinedaoust.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    for the non CDN, can you explain the steps in detail as i am from non tech background but can try these steps.

    @antoinedaoust Thanks for sharing! Have you experienced this particular issue recently with any specific caching plugins? The Web Stories plugin did have some conflicts with caching plugins and WAF when it first launched in 2020, but those issues were addressed in GitHub here and here. If you’re still having trouble, please let us know the WAF/caching plugins that you are using so that we can test.

    @thenewsvoice I know that you already have an open topic with us about AMP errors. I took a quick look at the Site Health information that you provided as part of that topic and it does not appear that your site is using any caching plugins so these troubleshooting steps do not apply.

    Plugin Support Luckyna San

    (@luckynasan)

    @antoinedaoust

    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.

    Please note the issue with WP Rocket has been reported and will be investigated here: https://github.com/wp-media/wp-rocket/issues/3879

    Noted and Thank you @shetheliving

    Thread Starter antoinedaoust

    (@antoinedaoust)

    @shetheliving

    Hi,
    yes, I get AMP issues with my cache plugin (WP-Rocket) with defaults settings. Even if it was up to date.
    No more AMP issues with the tips i gave.
    It was issues like “AMP HTML balises missing”, custom JS not authorised ….

    @luckynasan

    Hi, yes i’ve just read that. Thanks a lot. Maybe keep in mind CDN settings are importants too. (for me)

    All of you

    Some default templates (Cooking for exemple) give a “valid story” on GSC amp tool verification. Others defaults templates (DIY for exemple) give an “AMP page valid” on GSC.

    I cannot explain how…

    Best regards

    Thanks for the details, @antoinedaoust! Hopefully WP Rocket will implement our requested fix for the caching issues on their side soon.

    Some default templates (Cooking for exemple) give a “valid story” on GSC amp tool verification. Others defaults templates (DIY for exemple) give an “AMP page valid” on GSC.

    Can you clarify that you see these issues when you create a new story from a template, save it without *any* changes, and then try to validate? Or are you making changes within the template before you validate?

    Plugin Support Luckyna San

    (@luckynasan)

    @antoinedaoust We are going to mark your topic as resolved as we haven’t received a response. Please feel free to open a new support topic if you continue to experience any issues. Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Few Tips to resolve AMP issues’ is closed to new replies.