• Resolved veda

    (@veda)


    I have installed AMP for WP – Accelerated Mobile Pages (https://fr.wordpress.org/plugins/accelerated-mobile-pages/) in order to create AMP pages for mobiles on my website

    All pages with normal url + /amp give the amp version.

    But it fails with WP Super Cache. AMP pages are here but the menu, the icons are not here and propose strange artefacts (same for the social buttons – you dont see the icons). I tried to disable/enable mobile support in WP Super Cache , play with rejected user agents (i put all mobile stuff inside) or rejected string like /amp* /amp but nothing work.

    It only works perfectly when i disable WP Super cache.

    Accelerated Mobile Pages give an extension ‘Plugin Manager’ in order to disable the plugin you want for amp page. I disable Super Cache but it has no impact.

    Anyone can help me to find a solution. I am ready to disable wp super cache for my amp version (if no solution) but want to keep it for the normal (desktop version) one. Thank you for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hi Veda,

    Thank you so much for writing to us and using our AMPforWP Plugin.

    Try to disable the ” wp super cache ” by using the Plugin Manager and re-save the Permalinks and then EmptyCache, reload the page and then check whether you’re able to view the changes or not?

    Also, tell me whether you’re using any Cache Plugin?

    Thread Starter veda

    (@veda)

    Hello ampforwp,

    I have tried to use the plugin manager but it has no impact.

    I got more info. This is the wp super cache cdn which provokes an issue with a font (only difference on the page) :

    wp super cache disabled :

    @font-face {font-family: ‘icomoon’;font-style: normal;font-weight: normal;src: local(‘icomoon’), local(‘icomoon’), url(‘https://www.mysite.com/wp-content/plugins/accelerated-mobile-pages/templates/design-manager/swift/fonts/icomoon.ttf‘);}

    wp super cache enabled :

    @font-face {font-family: ‘icomoon’;font-style: normal;font-weight: normal;src: local(‘icomoon’), local(‘icomoon’), url(‘https://s2.mysite.com/wp-content/plugins/accelerated-mobile-pages/templates/design-manager/swift/fonts/icomoon.ttf‘);}

    https://s2. is a cookieless domain (normally targeting all images, static stuff from the site.

    for info : i’ve checked both links and they are accessible.

    For the moment I have rejected string uri /accelerated-mobile-pages/ for cdn and this is ok.

    This is not a big deal but I am wondering why this provokes an issue and cannot use the cdn for this.

    ps : I have created a thread on wp super cache support too : https://wordpress.org/support/topic/issue-with-amp-for-wp/

    BTW thank you for this great plugin!

    Regards,

    • This reply was modified 7 years, 7 months ago by veda.
    Plugin Contributor ampforwp

    (@ampforwp)

    Hi,

    You’re very welcome, Veda.

    I appreciate your effort in finding out this.

    Could you tell me is everything now working fine for you?

    Thread Starter veda

    (@veda)

    Yes this is ok. Thank you

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi Veda,

    You’re welcome.

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

The topic ‘Issue with WP Super Cache’ is closed to new replies.