Cache was indeed disabled under WebAdmin OLS Server Configuration > Modules ('enableCache' and 'enablePrivateCache' were both set to 0). Below my (now assumed correct) cache module parameters:
checkPrivateCache 1
checkPublicCache 1
maxCacheObjSize 10000000
maxStaleAge 200
qsCache 1
reqCookieCache 1
respCookieCache 1
ignoreReqCacheCtrl 1
ignoreRespCacheCtrl 0
enableCache 1
expireInSeconds 3600
enablePrivateCache 1
privateExpireInSeconds 3600
storagePath $VH_ROOT/olscache
After purging all caches (W3 Total Cache, LiteSpeed Cache and Cloudflare) and visiting any page, I can indeed see the header x-litespeed-cache: hit on the first GET request on the page URL. But all of the subsequent requests to load static assets (.js, .css, image files) I see a x-litespeed-cache: miss header.
I don't think this is the expected behavior, even though static files are being served through Cloudflare.
On cache settings for LiteSpeed plugin, I simply enabled all cache options, without changing any values (so all default values for TTL apply). I've also disabled auto purge options, but I still get 'cache miss' on all static files.
Any ideas on what could be the issue, or what test I could do to try to solve this?