• Resolved merilynne89

    (@merilynne89)


    Hi,
    First thanks for the great plugin! It visibly improved my site loading after enable Cache Enabler for desktop.

    However, it seems not working so good in mobile amp page. Google PageSpeed does not output any change after enable it. And in the page source of https://url/?amp=1, there’s no something like this:

    <!– Cache Enabler by KeyCDN @ Sun, 25 Jul 2021 06:28:10 GMT (https-index.html.gz) –>

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

    (@anonymized-16850768)

    You’re welcome! We’re glad to hear Cache Enabler has been helped improve your site loading.

    As of version 1.7.2, Cache Enabler is not capable of creating a separate cache version based on a query string. In many cases a query string will actually bypass the cache. That means if https://example.com/?amp=1 was requested Cache Enabler would be bypassed by default. For AMP to work with Cache Enabler the path would need to include AMP instead, such as https://example.com/amp/.

    @coreyk Please if i want to exclude all URLs ending with /amp/ from the cache, how do I do that?

    I don’t understand regex ??

    Thanks

    Anonymous User 16850768

    (@anonymized-16850768)

    @strictlyonlinebiz, excluding all pages ending in /amp/ can be done by using the following regex:

    .*\/amp\/$

    Regex test: https://regex101.com/r/CZ9262/1

    @coreyk Thanks a lot sir.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enable Cache on mobile with AMP’ is closed to new replies.