The very best LiteSpeed Cache Varies for OpenCart if Journal 3 and LSWS is used

serpent_driver

Well-Known Member
#81
I ask Journal developer and receive acknowlegment about this.
Journal Theme Support (journal-theme.com)
I can't access your private discussion of ticket support.

again and again - Journal3 ALWAYS provide for Safari (not depend version) jpg or png images. NOT webp!
It doesn't matter if Journal supports Safari detection for webp or not. My cache varies plus a small rewrite rule for accept header makes OC webp ready, regardless if Journal is used or not. That also means that there is no need to extend cache extension, but the crawler needs to be extended to work like my crawler does it.
 
#86
Hi because i am new to litespeed and i dont understand!(sorry)

I have opencart 3.0.3.7 with journal 3 (3.1.12) can you tell me the best configuration and how to import it?

Thanks a lot!
 

AndreyPopov

Well-Known Member
#87
Hi because i am new to litespeed and i dont understand!(sorry)

I have opencart 3.0.3.7 with journal 3 (3.1.12) can you tell me the best configuration and how to import it?

Thanks a lot!

most important questions:
- are you use webp images?
- are you enable webp support in Journal?


LSWS (Lite Speed Web Server) or OLS (OpenLiteSpeed)?
 

AndreyPopov

Well-Known Member
#89
i need to do it first from journal?
Journal3 has built-in support for webp images, if your OS contains necessary libraries, for example:
OptiPNG version 0.7.7
jpegoptim v1.4.6 x86_64-redhat-linux-gnu
cwebp 1.0.0


you can check this in Journal GUI (Opencart Admin)
Journal->System->Settings->(choose edit corresponding site)->Perfomance->Compession (Beta)
 

AndreyPopov

Well-Known Member
#92
Ok i install and enable all this 3
when you enable Compression in Journal Perfomance Settings then Journal automatic convert your jpg/png images to webp and provide to supported browsers.

to correct work with LScache you must enable in GUI Separate View for Safari and uncomment rewrite rules in .htaccess

all others settings like this thread "very best" - not necessary
 
#95
I uncomment all! what is next?


### LITESPEED_CACHE_START - Do not remove this line
<IfModule LiteSpeed>
CacheLookup on
## Uncomment the following directives if you has a separate mobile view
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini" [NC]
RewriteRule .* - [E=Cache-Control:vary=isMobile]
## Uncomment the following directives if you has a separate Safari browser view
RewriteCond %{HTTP_USER_AGENT} Safari
RewriteCond %{HTTP_USER_AGENT} !Chrome
RewriteCond %{HTTP_USER_AGENT} !CriOS
RewriteRule .* - [E=Cache-Control:vary=isSafari]
RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini" [NC]
RewriteCond %{HTTP_USER_AGENT} Safari
RewriteCond %{HTTP_USER_AGENT} !Chrome
RewriteCond %{HTTP_USER_AGENT} !CriOS
RewriteRule .* - [E=Cache-Control:vary=isMobileSafari]
RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini" [NC]
RewriteRule .* - [E=Cache-Control:vary=isMobile]
RewriteCond %{HTTP_USER_AGENT} Bot
RewriteRule .* - [E=Cache-Control:vary=isMobileBot]
</IfModule>
### LITESPEED_CACHE_END

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

 

serpent_driver

Well-Known Member
#96
@snowpoloi

If you are not yet familiar with LiteSpeed and LScache, you should stay away from any custom solutions. If you don't know and don't understand what you're doing, you can't know what to do when problems arise. First, I advise you to familiarize yourself with LScache. That's complicated enough. You can always add .webp support later.
 

AndreyPopov

Well-Known Member
#97
also check that not any rewrite rules with [L] flag before LSCache rules.

- enable images Compression in Journal3 settings (not forget clear Journal cache after that)
- enable LScache in Opencart Admin GUI and configure

try.....

check if LScache work - find in header
x-litespeed-cache: hit or miss
 

AndreyPopov

Well-Known Member
I dont know what to do to enable cache
you enable lscache by "CacheLookup on" rule in .htaccess and when enable LSCache plugin in Opencart Admin GUI.

to run crawler you must add in LSCache GUI settings in field
Rebuild Cache for specific devices/browsers
User Agents strings, Save and press Rebuild All LiteSpeed Cache
 
Top