Hi,
I am actually the author of that post on stackoverflow. I am also already using the .htaccess rewrite rules in the answer to my question.
Still the background images are not reliably webp. I have notice that if I enable minify css in litespeed cache, it will force the webp background images (but still not 100% of the time)