youssef2016
Forum Replies Created
-
Hello,
Thanks for your reply,
I know but it requires litespeed enterprise webserver to make it work, but with openlitespeed not working.
Thanks.
Forum: Plugins
In reply to: [LiteSpeed Cache] wp_is_mobile() Problem<? if( wp_is_mobile() ) { ?>
<script src="/Assets/js/mobile.js?v=1.0"></script>
<? } else { ?>
<script src="/Assets/js/desktop.js?v=1.0"></script>
<? } ?>This code is in header.php file, and it used to display separate js file for mobile & desktop, when I change ?v=1.0 to any version like 1.1 or 1.5, the first access on mobile gives mobile.js and cache hit then on refresh page multiple times it gives desktop.js on mobile, The problem occurs on version (6.3) but if I go back to (6.2.0.1) the problem went away.
Forum: Plugins
In reply to: [LiteSpeed Cache] wp_is_mobile() ProblemNo, but if I changed the version ?v=1.0 then purge all, first access on mobile gives the correct file
Forum: Plugins
In reply to: [LiteSpeed Cache] wp_is_mobile() ProblemYes, it gives the correct js file
Forum: Plugins
In reply to: [LiteSpeed Cache] wp_is_mobile() Problem<? if( wp_is_mobile() ) { ?>
<script src="/Assets/js/mobile.js?v=1.0"></script>
<? } else { ?>
<script src="/Assets/js/desktop.js?v=1.0"></script>
<? } ?>I use it like this example, and plugin give me desktop.js on mobile.
Forum: Plugins
In reply to: [LiteSpeed Cache] wp_is_mobile() ProblemReport number: IVVFEGKK
Report date: 07/24/2024 11:22:27