Magento 2.4.3 Multi Store - Only Default Store Cached

#1
We have a multi-store M2 instance running 2.4.3. Our default store (ID 1) caches fine, and returns cache hit every time. Every other store (French, German, Spanish) etc never caches and always returns the below:

(URL removed for security)

[user@user ~]$ sh M2-crawler.sh -d https://url.co.uk
https://url.co.uk ->
-------Debug curl start-------
URL: https://url.co.uk
AGENTDESKTOP: User-Agent: lscache_runner
COOKIE:
HTTP/1.1 201 Created
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
set-cookie: PHPSESSID=ad427f8655059af6087ccaeec29ccbac; expires=Sat, 05-Feb-2022 15:35:14 GMT; Max-Age=3600; path=/; domain=de.m2.muffle.co.uk; secure; HttpOnly; SameSite=Lax
set-cookie: X-Magento-Vary=1d37f1b3bbacf4cca400f42bb32001fc7200ede5; expires=Sat, 05-Feb-2022 15:35:14 GMT; Max-Age=3600; path=/; secure; HttpOnly; SameSite=Lax
set-cookie: _lscache_vary=deaad9be6966710df6fc53421d361eafcc7d3a5c; path=/; secure; HttpOnly; SameSite=Lax
content-length: 0
date: Sat, 05 Feb 2022 14:35:14 GMT
server: LiteSpeed
-------Debug curl end-------
Header Match: HTTP/1.1 201 Created
Set-Cookie found
Caching

Believe it to be due to the X-Magento-Vary cookie?

We have reverted to the default Magento theme, only extensions enabled is Litespeed.

Any suggestions please?
 

Unique_Eric

Administrator
Staff member
#2
Not sure if you are the same one on Slack, the similar question has been resolved.

you cannot test with a shell script. if you use browser, first time it generate a store vary, and save to cookie, next time refresh, it will be cache hit.
These settings seem to have worked.

By using the Context Vary Bypass feature to exclude store,current_currency.
 
Top