Disable mobile cache
-
Hello Litespeed Cache,
How can disable cache on mobiles and tablets?Best regards
-
If you are able to find the mobile and tablets’ user agents, you can use add them to
Do Not Cache User Agentssetting.Hi @ach1992
Hai’s solution works, but I am wondering, why do you want to disable cache on Mobile? Maybe there’s a better way to achieve what you want, without disabling the cache for a large percentage of your users.
If you let us know your situation, maybe we can come up with a better suggestion 🙂
LiteSpeed not generating on my blog https://legitloaded.com/
saw this
URL list in queue waiting for cron
https://legitloaded.com/rayvanny-gimi-dat-ft-mayorkun-video
https://legitloaded.com/19138422_0bd9a7q/kodamakagu/cabinet/gzou01/s5rk14.jpg
https://legitloaded.com/category/news
https://legitloaded.com-
This reply was modified 6 years, 6 months ago by
Johnson.
Hello
There is a problem when the cache is enabled. The mobile version and desktop version get mixed up! I use the Martfury theme and it has a lot of problems with the Litespeed Cache.
Please, help me to fix this problem.Best regards
Hi @ach1992, you can try to use
Litespeed Cache Setting > Cache Mobile, it will separate mobile and desktop cache version.Hi @legitloaded, seems the cache root not set properly on the server, may I know which type of LiteSpeed server are you using? Also, could you please provide Report Number?
I read your comment on this post about “why do you want to disable cache on Mobile?”
and it got me really confused, because on the LS Cache settings it says:“Cache Mobile is Off: Cache mobile views separately. Only enable for AMP or mobile-specific design/content, not for responsive sites.”
My site is responsive and I don’t have an AMP version of it
The reason why this confuses me is because I just migrated from WP Rocket and they want you to enable that setting of their mobile cache for sure.
With LS Cache I am doing great on Desktop speed but with mobile I could really use improvement. So, should this be enable or not?
Regards,
Hi @lechon
If you have a responsive theme, you can leave Cache Mobile set to
OFF.What that option is really for is for caching a separate copy of your site for mobile. In responsive themes, it is not necessary to cache a separate mobile/desktop version, because the HTML is the same between desktop and mobile. (The differences between the two versions are handled by CSS.)
So, leave it OFF, and both your desktop and mobile traffic will be cached by default.
Let me know if you have any other questions!
Hi again, @lechon
I just re-read the rest of the thread. If you already have Cache Mobile set to
OFF, and you are seeing mobile content on desktop and/or desktop content on mobile, then it sounds like you don’t actually have a responsive theme.The Cache Mobile setting is for sites where the desktop version’s HTML is different than the mobile version’s HTML. If that is the case for your site, then it should be turned
ON.I hope I haven’t just confused the matter further! If you still need help, please provide your Report Number, found in WP Admin > LiteSpeed Cache > Report, so our support staff can take a look at your site, and see what’s up.
Hi,
Thanks for taking the time to explain this.I am not seeing mobile content on desktop or desktop content on mobile, so per your advice I am leaving it off.
Cheers!
Oh, good, glad to hear it! Let us know if you run into any other questions 🙂
Hi, can i “ON” Cache Mobile”?
I don’t use AMP and my theme is Newspaper
I don’t know if my theme support “mobile-specific design/content”
I only know that if my theme is “Responsive” then i have to keep it “OFF”.Thanks
-
This reply was modified 6 years, 6 months ago by
The topic ‘Disable mobile cache’ is closed to new replies.