Problem with cache plugin and check for mobile device
-
Hi there,
Great plugin. We only have a small problem.
On line 396 and line 512 (AMP) you check if the web is viewed on a mobile device (via PHP code):
if (wp_is_mobile() ) {echo "api";} else {echo "web";}
and choose the protocol accorging to the device.We are facing problems with cache plugins as they cache this check and normally the cached URL is always the web.whatsapp.com URL so that on a mobile device the link is not opened in the Whatsapp APP but in the browser (asking for web login).
Any idea how to solve this? In order to avoid cache plugin issues this check should be done in Javascript but we really don’t know how exactly.
Thanks for your time.
- The topic ‘Problem with cache plugin and check for mobile device’ is closed to new replies.