Hello, I am trying to fix an issue related to newspaper’s mobile theme plugin and Cloudflare for 10-15 days but I am failed to fix. Finally, I have to create this ticket.
I have installed Wp super cache and setup as per your guide available on https://forum.tagdiv.com/cache-plugin-install-and-configure/ And, added my site over Cloudflare by following your guide – https://forum.tagdiv.com/cloudflare-cdn/ but having some issues with the mobile theme plugin.
My site sometimes loads the desktop version on mobile devices and vice versa sometimes loads the mobile version on desktop PC.
But, When I pause Cloudflare cache or put it on development mode, it works without any problem. On mobile, the mobile theme plugin works, and the full-site works on desktop PC.
I have tried to change many settings in Cloudflare to fix the problem but nothing helped.
I thought, it may cause due to wp super cache so I installed wp-rocket cache plugin but the same problem still facing while using the cloudflare.
Please see the following video and help me to know why newspaper mobile theme is not working with cloudflare cache.
The following video will show you wp-rocket plugin and cloudflare setting and describe the problem
https://drive.google.com/file/d/1ON9lUJh4NxHlbjsV4pkO0bZ9CFDdA0bl/view?usp=sharing
My website URL is same as showing in the above video
Mobile screenshot: https://drive.google.com/file/d/1gz6mHIOU8JtNU9MeCiTfoQWU57QOEPOn/view?usp=sharing
Some info about my site
Activated plugins are:
Akismet Anti-Spam
AMP
OneSignal Push Notifications
Super Progressive Web Apps
tagDiv Cloud Library
tagDiv Composer
tagDiv Mobile Theme
tagDiv Newsletter
WP Mail SMTP
WP Rocket
Yoast SEO
Some info about my hosting server
1) File are hosted on Digital ocean server
2) Server – Ubuntu 22.2, Nginx, Mysql, PHP 8.2
3) Website – https://geeksramp.com
4) All plugins and newspaper theme are updated
I have explored many topics on the tagdiv forum but none helped. moreover, I have made no custom code to change the layout of mobile theme plugin.
Thanking you!
-
This topic was modified 3 years by
Lalit.
Hi,
For the cache plugins, when you use the mobile theme plugin you need to enable in cache plugin the cache for mobile devices – https://i.imgur.com/YkuXcG8.png – https://i.imgur.com/7WTiZN7.png
Now about the CDN, the mobile theme is not working with the CDN, because this by default recognizes only the responsive version. There is an extension that should be working, but this is not free – https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/ – https://prnt.sc/IGADrkzKOvay this normally should work with the mobile theme too.
Thank you!