• Resolved lenzostore

    (@lenzostore)


    Hello there,

    I’m using a theme which comes with a separate mobile page which shows a different homepage in mobile than in a Desktop.

    The issue is that instead of showing the mobile homepage in mobile , it’s shows the desktop homepage, it solves by purging the cache, but after few minutes later, the same issue appears.

    I thought this might be solved by enabling Cache Mobile in Cache settings, but it’s still there.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please provide the report number ?

    Best regards,

    Thread Starter lenzostore

    (@lenzostore)

    Thanks for quick respond.

    Here is the Report number: ZPRHGRJE

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please try this

    edit htaccess

    change

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

    to

    RewriteCond %{HTTP_USER_AGENT} iPhone|Mobile [NC]
    RewriteRule .* - [E=Cache-Control:vary=ismobile]

    then purge all , see how it goes.

    Best regards,

    Thread Starter lenzostore

    (@lenzostore)

    Hello There,

    After doing what you said, I was testing all this hours and checking if the issue will appear.

    Unfortunately It happened again, once I purged , it went back normally.

    Hope if there’s another workaround I can try.

    Regards.

    Hi @lenzostore, can you try hit the page cache on any page, and then add

    RewriteRule .* - [E=Cache-Control:vary=testing_vary]

    right after

    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule ^min/\w+\.(css|js) - [E=cache-control:no-vary]
    ----ADD_HERE----

    and go to the same page again to see does the cache changed to miss?

    This action is used to confirm does the RewriteRule working on your site.

    Thread Starter lenzostore

    (@lenzostore)

    Hello @stanleylitespeed , I’m not sure if I understood you correctly.

    Do you mean I check any page on my website if the x-litespeed-cache is hit, then add that line of code in my htaccess and check the same page again if it’s changed to miss?

    Is that what you mean?

    Thank you

    Yes, if it’s showing miss that can verify the RewriteRule is work on your server. Because some types of server require more setting to enable RewriteRule.

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi,

    I’m going to mark this topic “Resolved,” due to lack of activity.

    If you still need help, please let us know what happened with the .htaccess test.

    We’ll be happy to reopen the topic if necessary.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Caching Issue with Separate Mobile page’ is closed to new replies.