openlitespeed server side caching issues

#1
so i am on OpenLiteSpeed 1.7.19

i use m2-crawler.sh script to warm up some pages so i run

./M2-crawler.sh -d https://m50.lv/product-category/gifts/art

and i get response Caching , and Already cached so i see all good so far.

but when i open the link in browser i get miss, which is confusing . on second refresh i will get hit. but it should hit the first time.

what am i missing?
 

Attachments

#4
@edmundspriede

With quic.cloud you can't use M2-crawler.sh to warmup the cache. This script doesn't support CDN usage, so you always warmup the cache at QC node that is closest to the origin server, but not the cache at the origin server. In addition, QC does not support cache varies defined by rewrite rules.
 
#8
If warmup would work with M2-crawler.sh and QC you would get either hit or no status header from origin server, so Latvia don't have a Internet that can switch off gravity. ;)

In M2-crawler.sh there is no code that uses the IP address of the origin host to connect origin host, so curl request goes only to the QC node that is closest to the origin host and only the cache of this QC node is warmed up.
 
#11
this is what i get after M2-crawler. by speed and TTFB it is cached copy.
Yes, this confirms what I already tried to make you understandable. x-litespeed-cache header from origin host must be hit if warmup with M2-crawler.sh would work. Warmup of a single QC node doesn't make any sense. Cache at the origin host must be warmed up first to benefit of QC CDN cache and to prevent to provide stale content by QC cache.
 
#13
from quic perspective i believe it means , we have no cache but we fetched cached copy from original server so we say BKD. next time we server cached copy with HIT. anyways im tryng to make it work so thaks for help
 
#14
BKD === backend
bkd seems to have more than only 1 meaning. e.a if I send a POST request, QC doesn't support caching of POST, but the origin host is able to cache POST, but QC sends bkd header in case of POST.

from quic perspective i believe it means , we have no cache but we fetched cached copy from original server so we say BKD. next time we server cached copy with HIT. anyways im tryng to make it work so thaks for help
No, it means the opposite. Request goes to the origin server, independently what the origin server can do with this request.

....anyways im tryng to make it work so thaks for help
You already have Kitt - The Cache Crawler, so why don't you use it?
 
Top