I'm trying to write a script which will simply check for the x-litespeed-cache header as a hit once in a while. That is more or less done, however I'm never getting a cache hit..
My response headers look like:
I've gone as far as saving cookies from the first request, passing them on a second request, and using a User-Agent string. No dice.
The pages I am checking are working (cache: hit) both in and out of incognito on different browsers. I just using a simple http request via nodejs.
I have noticed that via this client x-litespeed-tag doesn't appear to change across requests. Reading up on it but not yet sure if that matters.
Do I need to send a specific header? How do I configure my server so this is not abused by bots?
My response headers look like:
Code:
'cache-control': 'private, proxy-revalidate, s-maxage=0',
'x-litespeed-tag': 'b5b_page,b5b_URL.e45fff28ff1f47129f3c634f10ffff02,b5b_Po.168471,b5b_PGS,f5f_',
'x-litespeed-cache': 'miss',
The pages I am checking are working (cache: hit) both in and out of incognito on different browsers. I just using a simple http request via nodejs.
I have noticed that via this client x-litespeed-tag doesn't appear to change across requests. Reading up on it but not yet sure if that matters.
Do I need to send a specific header? How do I configure my server so this is not abused by bots?