How do you get LiteSpeed Cache to not cache something?
I guess you don't. I've tried entering even the exact filename, and it still caches it.
curl -I https://www.micropissed.com/wp-sitemap.xml
HTTP/2 200
content-type: application/xml; charset=UTF-8
vary: Accept-Encoding
x-litespeed-cache: hit
date: Wed, 29 Jun 2022 01:35:51 GMT
server: LiteSpeed
The first time I run it, there's a cache header that says no-cache. Second time you run it, it's cached.
/(.*)sitemap(.*).xml
That's what I have for Do Not Cache URIs. I found that on some other site, it doesn't work either. Looks like regex. The dot might mean any character, and the star any number of characters.
Perhaps there's a problem with OpenLiteSpeed itself.
That regex works according to a PHP regex test site.