• Resolved ararzoyan05

    (@ararzoyan05)


    • ISSUE DETECTED!

      Mobile not detected simulating a mobile device.

      It looks the page is served by cache but without distinguishing between desktop and mobile.

      Read here. It can help to understand what is going on.

      If it’s still not clear, open a thread on the support forum

    • In mobile my page look like as same as in web, although I created mobile version of my homepage(It looks like different). I tried to delete and recreate mobile versiom, but when I deleted it in mobile appeared 404 not found error, and there was a 2 buttons(to switch into mobile and desktop version). I want to create mobile version, which will be look like different, can we help me, please?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jose

    (@giuse)

    Hi @ararzoyan05

    the cause of the issue is described by the message that you have seen in your backend. The page is served by cache but without distinguishing between desktop and mobile. Have you read the linked article?

    I confirm that the message is right because if I check your page I see the following comment both on mobile and desktop.

    <!--
    Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/
    
    Served from: spaceshop42.com @ 2022-10-08 21:37:32 by W3 Total Cache
    -->

    Please, read here: https://www.ads-software.com/support/topic/how-it-works-49/, and here: https://www.ads-software.com/support/topic/the-caching-plugin-if-any-must-distinguish-between-mobile-and-desktop/

    Read “3. Other Settings”to set a different cache for mobile with W3TotalCache: https://stylemixthemes.com/wp/guide-to-w3-total-cache/

    If you have a CDN be sure the page is not served by the same cache for mobile and desktop.

    Ask also support from your hosting to be sure you don’t have also a layer of cache from the server that doesn’t distinguish between desktop and mobile.

    I hope it helps.

    Have a great day!

    Jose

    Thread Starter ararzoyan05

    (@ararzoyan05)

    Hi @giuse

    I followed your instructions, and confugured W3 Total Cache for WP Touch,I used this article(I used this article https://support.wptouch.com/article/1446-configuring-cache-plugins-for-wptouch), but it doesnt help, Do You have other solutions?

    Thank you.
    Ara

    Plugin Author Jose

    (@giuse)

    Hi @ararzoyan05

    now W3 Total Cache works right as I see by inspecting elements on your page.
    But you still have another layer of cache before the cache of W3 Total Cache.

    You can confirm that Specific Content For Mobile and W3 Total Cache work right if you do the following:
    – Go to https://spaceshop42.com/ using Google Chrome
    – Right click => Inspect
    – Look for the comment “Performance optimized by W3 Total Cache…”, read the date and time
    – Select the mobile simulator by clicking on the smartphone icon
    – Refresh the page
    – Look again for the comment “Performance optimized by W3 Total Cache…”, and read the date and time. They will be the same as before
    – Visit https://spaceshop42.com/?no_cache=1 in desktop mode
    – Inspect elements
    – Search again for the comment “Performance optimized by W3 Total Cache…”, and read the date and time. You will see different date and time.
    – Click on the smartphone icon to simulate a mobile device.
    – This time visit https://spaceshop42.com/?no_cache=2
    – You will see a different date and time in the comment of W3 Total Cache and the right content for the mobile version

    By adding ?no_cache=1, ?no_cache=2…, ?no_cache=13… every time you visit the page, you will bypass the cache provided by your server or CDN. If you bypass it all works as expected.

    As written in my previous comment:

    If you have a CDN be sure the page is not served by the same cache for mobile and desktop.

    Ask also support from your hosting to be sure you don’t have also a layer of cache from the server that doesn’t distinguish between desktop and mobile.

    I hope it helps

    Have a great day!

    Jose

    Thread Starter ararzoyan05

    (@ararzoyan05)

    Hi @giuse

    I tryed to disable caching in mobile. For a while it works, but 3 days ago it returned to its original appearance. What can I do?

    Hi Jose,

    So a week or so ago, I updated WordPress and W3TC and SCFM.

    Not sure when exactly, but an Editor informed about the same “mobile not detected..” reported by the OP.

    I have found that with the same cache timestamps, W3TC is serving different content.

    So after W3TC clear all caches, load guest mode Chrome, dev tools sim iphone 12, load page, get correct mobile content, I even hard coded text “I AM MOBILE” in the page. In view source, got a W3TC served timestamp. Close Chrome, open guest mode, load site and get correct desktop version, the text box does not even appear on the desktop version. View source, has no “I AM MOBILE” and got identical W3TC served timestamp.

    No other caching plugin. Not using CDN.

    I do notice that in view source, object caching is different depending on which page, desktop or mobile, was opened after purging all caches.

    Want to take a look?

    Plugin Author Jose

    (@giuse)

    Hi @fractaleater

    I’ve right now inspected your page. At the time of writing my comment, I see the same cached version both for mobile and desktop.
    But if I add a query parameter to the URL that is always different, for example ?a=1, ?a=2… I see that all works as expected.
    Visit the page at https://spaceshop42.com/?no_cache=!, https://spaceshop42.com/?no_cache=2&#8230; You will see no issues because you always get non-cached pages.

    The timestamp that W3TotalCache writes in the HTML comments is expressed in hours:minutes: seconds. This is not a big help because it may generate the mobile cache not later than 1 second after it generates the desktop cache.
    I think we can’t say if the issue is caused by W3TotalCache or a layer of cache that is before W3TotalCache.

    Be sure you don’t have any mu-plugin that is also caching the pages, for example, endurance-cache.php which many hosting providers install when you install WordPress. You can check it in Plugins => Installed Plugins => Must-Use.

    I would also ask your hosting provider if you have some cache provided directly by the server. This is for me the most probable cause of the issue.

    Be also sure the theme doesn’t provide its own cache.

    In any case, it’s a problem related to the cache, because when you bypass the cache (by adding something always different to the URL), all works as expected.

    Have a great day!

    Jose

    I am talking about another site. My site. Not the OP’s site. The issue for my site is that the backend is reporting “mobile not detected…” condition when the frontend is behaving correctly. I am seeing the correct mobile version and the correct desktop version. I think it is odd that I am seeing the same W3TC time stamp for both mobile and desktop versions when many seconds have gone by between requests, and I mention it as a possible source problem for SCFM’s backend detection mechanism.

    So, my problem is that SCFM backend detection mechanism is false positive since my cache does separate mobile from desktop.

    And this morning, my SCFM backend “mobile not detected..” error message vanished. Bizarre.

    And this morning, my SCFM backend “mobile not detected..” error message vanished.

    Sorry for the distraction.

    Plugin Author Jose

    (@giuse)

    Hi @fractaleater

    Thank you for the information. The check is done and the message is updated when you save a post or page. We should improve the message, maybe by adding a button that says “Check again”, and if then it’s ok it doesn’t appear anymore.

    Have a great day!

    Jose

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Mobile not detected simulating a mobile device’ is closed to new replies.