Plugin Support
qtwrk
(@qtwrk)
Hi,
Could you please try add this code at top of your .htaccess
RewriteCond %{HTTP_USER_AGENT} iPhone|Mobile [NC]
RewriteRule .* - [E=Cache-Control:vary=mobileview]
then try again ?
Best regards,
Hi,
Thanks for your reply and suggestion which I’d like clarified.
What does this do exactly and what role is iPhone in this scenario?
Morten
Plugin Support
qtwrk
(@qtwrk)
Hi,
this rule will use “iPhone” and “Mobile” as keyword to user agent to detect mobile devices and vary it
Best regards,
OK – thanks – It looked as if if was geared to iPhone specifically, leaving out Android.
I’ve activated this now, so hoping for the best.
Plugin Support
qtwrk
(@qtwrk)
Hi,
No , android devices has keyword “Mobile” in its UA
Best regards,
Hi,
It has happened again.
Report number: LGQTMSIH
Report date: 12/16/2020 14:41:56
I have now deactivated cache once more in wait for a resolution.
Plugin Support
qtwrk
(@qtwrk)
Hi,
Do you have any way to reproduce/trigger the issue ?
without a way to reproduce it , it will be hard to debug
Best regards,
Hi,
I was publishing several posts.
Morten
Hi,
Several hours after finishing publishing several posts, it happened again, but I have no clue as to any connection. Also it happened many hours after publishing this time, vs during publishing the prior time (yesterday). But I was adding new posts as it happened.
Report number: LDGLKAYG
Report date: 12/17/2020 21:24:15
Morten
Plugin Support
qtwrk
(@qtwrk)
Hi,
May I know how does your theme to detect mobile ?
Best regards,
Hi,
I’m using a desktop and mobile theme – so separate themes.
Morten
Plugin Support
qtwrk
(@qtwrk)
Hi,
No , I mean , how does it detect if incoming user is desktop or mobile ?
like by user agent I suppose ? do you have more detail for how detects it ?
Best regards,
User agent, yes.
https://support.wptouch.com/article/1447-default-wptouch-pro-user-agents
iPhone & Mobile
iPod & Mobile
Android & Mobile
BB & Mobile Safari
BlackBerry & Mobile Safari
webOS
IEMobile/7.0
IEMobile/9.0
IEMobile/10.0
MSIE 10.0 & Touch
iPad
PlayBook
Xoom
P160U
SCH-I800
Nexus 7
-
This reply was modified 5 years, 6 months ago by
Morten Ross.
Plugin Support
qtwrk
(@qtwrk)
Hi,
okay , please copy paste that user agent list into mobile cache user agent list in cache setting
Best regards,
Hi,
I first added to existing agents. That made the site unavailable.
Replaced default agents, and then the site was available.
Today (so no interaction from me), I find the site is unavailable. Deleted cache. No change. Deactivated cache – still unavailable. Replaced user agents with default. No change. Replaced default with wptouch’s user agents. Now site is available again.
Again I test with adding wptouch user agents with lscache’s agents, and now there is no issues with access on mobile.
It seems the underlying issue with switching to desktop is still there, as when the user agents list is extended, it’s not switching to desktop, but rather switching to a dead end – inaccessible site.
M