• Resolved dallass

    (@dallass)


    Hello,

    Lately, I have a problem with Litespeed as the mobile version it is shown on desktops.
    If a purge the cache and visit a page from the mobile and then a visit the same page from the desktop, the mobile version it is shown.
    If I visit the page first from the Desktop and then from mobile, it is ok.

    I have a multisite intallation with a responsive version of the theme.
    As far as I read, apparently I do not need o cache a mobile version separately. But, with or without mobile cache, the problem still persists.

    What I have done:

    1. I have enabled LiteSpeed on each site (but, in this way I do not have the option Cache mobile). The problem still there.

    2. I have enabled Litespeed on the network level and disabled on the site where I do not need cache. The problem still there
    – I have put mobile cache on, but I get these errors when I save: https://imgur.com/a/bjVp3MS
    => ERROR 4500: Could not find ### marker MOBILE
    => Htaccess did not match configuration option. Please re-enter the mobile view setting. List in WordPress database is: Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi
    – I have added this code in htacces but the errors persists
    https://www.litespeedtech.com/support/forum/threads/litespeed-cache-conflicting-with-the-amp.15904/#post-100790

    Can you please help me to solve it ?

    Report number: ZLDBSPUN
    Report date: 11/30/2019 17:10:38

    Thanks!

    • This topic was modified 4 years, 4 months ago by dallass.
    • This topic was modified 4 years, 4 months ago by Jan Dembowski.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please check your .htaccess file permission

    if you go manually add the code , you should add it like this :

    ### marker MOBILE start ###
    RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC]
    RewriteRule .* - [E=Cache-Control:vary=ismobile]
    ### marker MOBILE end ###

    Best regards

    Thread Starter dallass

    (@dallass)

    Sorry, but there is not difference between the code that you posted and the code from litespeed forum (mentioned in my first post).

    The .htacess it is 0644 (so it has write rights).
    Also, if it can write the other lines I think it can write also the lines for mobile.
    So, this is not the problem.

    I see that the login link give with the report is is not used. Is that still needed ?

    @dallass, May I know are you disabled the mobile cache now?

    Thread Starter dallass

    (@dallass)

    No. The cache it is enabled.
    Also mobile cache is enabled.

    Aparently it is working. But the error it is still there (in settings).

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please create a PHP file with following code ?

    <?php 
    $filename = '.htaccess';
    if (is_writable($filename)) {
       echo "writable";
    } else {
        echo "not writable";
    }
    ?>

    and see what it returns ?

    And do you have any security plugin ? I have come across some plugin that disables htaccess editing for security reason.

    Best regards,

    Thread Starter dallass

    (@dallass)

    It returns “writable”.

    I only had DoLoginSecurity, which I installed to send the report to LiteSpeed.
    I have now uninstall it as nobody looked to it.

    But, I ran your code before uninstalling the plugin.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please send report number again with DoLoginSecurity ?

    Best regards,

    Thread Starter dallass

    (@dallass)

    Hello,

    This is the report:

    Report number: ZLDBSPUN
    Report date: 11/30/2019 17:10:38

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Apologize the inconvenience.

    Please submit a ticket here , we will investigate it further.

    Best regards,

    Thread Starter dallass

    (@dallass)

    OK. I have submitted.

    Thread Starter dallass

    (@dallass)

    This was solved via the support ticket. Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Mobile cache problem’ is closed to new replies.