Issues when using both AMP pages + mobile theme
When using a mobile theme (such as WPtouch Mobile Plugin), we need to add a list of items to “Rejected User Agents” (see here). However, when using AMP pages (for example with the amp plugin by automatic), then that page will almost always be visited by a mobile user, but that page would then not be cached (due to the configuration aimed at the mobile plugin).
Possible solutions:
- Have a separate “Rejected User Agents” fields for regular posts and for AMP posts.
- Add an action so that whenever a page is regularly cached by a visitor, it would also create the cache for the AMP page (This way the normal visitors to the site would trigger the amp cache, and the mobile users would benefit from it).
@donnchawp I'd appreciate your help with this.
Thanks, Tal
Do you have mobile browser support enabled? Are you disabling caching for mobile users? Are the user agents listed in mobile browser support in the "rejected user agents" that you add to that field?
You can use a WordPress filter to add your own user agents to the mobile browsers list so those users will get their own type of cached page.
Closing this for now because of the lack of activity on this. We can always reopen in the future if needed.