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

serpent_driver

Well-Known Member
#21
As long as you don't consider the OS version of MAC clients you will never have the correct cache varies for Safari, so that's why your cache varies can't work for any Apple device if Safari is used.
 

Lee

Well-Known Member
#22
OK, serpent_driver is the King Daddy of Litespeed Cache!

Not only is this faster than greased lightning, it's the only program to warm cache for my iPhone! My iPhone is finally lightning fast!

I can cache 2500 URLS with eight UA's in under 20 minutes!
 

AndreyPopov

Well-Known Member
#23
As long as you don't consider the OS version of MAC clients you will never have the correct cache varies for Safari, so that's why your cache varies can't work for any Apple device if Safari is used.
I not need check Safari version or MacOS version, because Journal3 always send for Safari jpg images.
when Journal3 developers change detection algorithm for support webp for Safari then I need (may be) check Safari/iOS/ipadOS/MacOS versions.
 
Last edited:

serpent_driver

Well-Known Member
#24
OK, serpent_driver is the King Daddy of Litespeed Cache!
Not only is this faster than greased lightning, it's the only program to warm cache for my iPhone! My iPhone is finally lightning fast!
I can cache 2500 URLS with eight UA's in under 20 minutes!
If I may comment on your song of praise, we're not talking about a program here, just native usage of curl running on a local machine. Your specified 2500 URLs in 20 minutes seems a bit too long to me, so you must correct the number of URLs. 2,500 x 8 different cache varies = 20,000 URLs in 20 minutes without high load!
 
Last edited:

serpent_driver

Well-Known Member
#25

AndreyPopov

Well-Known Member
#26
Strange, so why do you use webp images if you request your page with Safari on Apple device? ;)

https://static.priazha-shop.com/ima...ameXl/yarnart-macrame-xl-167-250x250.jpg.webp
again and again - Journal decide what type of images provide.

image above (and all webp images) created by Journal, not by me
journal_jpg_safari.jpg
and for Safari provided JPG images
https://static.priazha-shop.com/ima...tMacrameXl/yarnart-macrame-xl-167-250x250.jpg


webp images provided to chrome,firefox,opera browsers on Windows, Linux(Android) platforms.

and Static Assets also provided by Journal Static Assets | Journal Docs (journal-theme.com)
all assets path will be generated using static assets url defined above
 
Last edited:

serpent_driver

Well-Known Member
#27
You know that Journal can only decide if a page isn't cached?

I've just checked it at your page. If a page isn't cached Journal sends .jpg for Apple device that doesn't support webp, but after reload webp images are loaded.
 

AndreyPopov

Well-Known Member
#28
You know that Journal can only decide if a page isn't cached?
you are mistake. Journal always decide even page cached by lscache. lscache include Journal js and variables.

but if you use developer mode in browser and not set "Disable cache" on Network tab then browser use it's own cache and run js from local (browser) cache.
 

serpent_driver

Well-Known Member
#29
lscache include Journal js and variables.
If what you're saying is true, Journal would be able to display the correct images even on cached pages, but that's just not the case. The respective images are not changed using Javascript, but the code for the <img> tag is changed using PHP replace, but this no longer works if a page is cached. How should it work?! Also, we're talking about a server-side function here and the browser cache has nothing to do with it at all.
 

Lee

Well-Known Member
#30
again and again - Journal decide what type of images provide.

image above (and all webp images) created by Journal, not by me
View attachment 2897
and for Safari provided JPG images
https://static.priazha-shop.com/ima...tMacrameXl/yarnart-macrame-xl-167-250x250.jpg


webp images provided to chrome,firefox,opera browsers on Windows, Linux(Android) platforms.

and Static Assets also provided by Journal Static Assets | Journal Docs (journal-theme.com)
Hi Andrey, I turned on Static Assets and I was wondering where it stores these files so I can see if it's working.

Thanks
 

serpent_driver

Well-Known Member
#36
I wouldn't be so sure that that would end the war. As long as Putin can sell his gas and oil to countries like China and India, he doesn't have to worry about financing the war. Almost no gas flows into the EU anyway. Deliveries to Germany were completely stopped on September 1st. Only 2 or 3 smaller countries still get gas.
 

AndreyPopov

Well-Known Member
#37
first - China and India are not ready pay same as EU countries
second - more important - russia have not logistics way to transport same quantity of gas and oil (as to EU countries) to China and India.

Deliveries to Germany were completely stopped on September 1st.
but this is not Germany or EU decision :(
this is russia "energy weapon" to blackmail EU to stop Ukraine support.

some details in numbers:
Europe has bought $46 billion worth of russian energy since the Ukraine war began
from February 24 to April 24

The European Union accounted for around 70% of russia's fossil fuel export revenues globally, which amounted to 63 billion euros ($66.3 billion) in the two-month period.

P.S. but this is not discussion for this thread.
 
Last edited:

serpent_driver

Well-Known Member
#39
@AndreyPopov

Back to topic of this thread. I updated the cache varies from my first post, but not due to wrong cache varies. I have updated them for optimizing, so there is no need to modify the code of the plugin to set a new _cache_vary to provide different cache depending on the device. Everything to detect devices can be done with correct cache varies and this independent if Journal is used or not.
 
Top