• Resolved Ali Sadiq

    (@devalisadiq)


    Hi

    Is there any way we can exclude all AMP posts/pages. We are using AMP by Automatic along with Pretty Permalinks and all AMP pages end with /amp/

    The issue is that when Cache Enabler is activated, we start getting AMP-related errors in search-console and https://search.google.com/test/amp also says that pages are not valid. Source-code fetched by https://search.google.com/test/amp shows that its a regular page and not AMP.

    Somehow Cache Enabler is serving source-code of regular page on /amp/ URL.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    I’m unable to replicate this issue, however, the following regular expression can be added in the Cache Exclusions setting so any file path ending in /amp/ will not be cached:

    /.*\/amp\//

    I’m also having this issue, using https://it.ww.wp.xz.cn/plugins/amp/ as AMP plugin.

    This solution works, but there is a way to also cache amp pages?

    Best,
    Dario

    • This reply was modified 5 years, 9 months ago by dudo.
    Anonymous User 16850768

    (@anonymized-16850768)

    Not currently. This issue is being discussed in issue #78 on GitHub. A solution is currently being evaluated.

    I will follow that issue, thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Exclude all AMP posts and pages’ is closed to new replies.