Caching Issue with Separate Mobile page




Wordpress LScache Plugin: Caching Issue with Separate Mobile page

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello there, Im 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 , its 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 its still there. Hi, Could you please provide the report number ? Best regards, Thanks for quick respond. Here is the Report number: ZPRHGRJE 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, 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 theres 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. Hello @stanleylitespeed , Im 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 its changed to miss? Is that what you mean? Thank you Yes, if its showing miss that can verify the RewriteRule is work on your server. Because some types of server require more setting to enable RewriteRule. Hi, Im 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. Well be happy to reopen the topic if necessary. Thanks!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference