Hi communtiy,
I have a close-to realtime application for which I am doing markup caching on Ajax refresh calls. Expiration times of these markup snippets is 12 seconds. I use a 302 redirect page rule on AJAX calls given they have a timestamp appended to avoid caching.
When I check my logs (below) I do see that CF is going to the origin in closer intervals than the set expiration time (12s). These request usually come from different origins (see logs below).
Is it fair to say that this is due to replication time among CF nodes? However these duplicate calls happen with a timer discrepancy of up to 7 seconds while I read in another post CF node replication should be done within 5 seconds.
172.68.214.201 - - [15/Jun/2020:07:47:33 +0000] “GET /heute/partial HTTP/1.1” 200 42846 “deleted/heute” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36”
172.68.50.83 - - [15/Jun/2020:07:47:43 +0000] “GET /heute/partial HTTP/1.1” 200 42846 “deleted/heute” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15”
172.68.50.83 - - [15/Jun/2020:07:47:56 +0000] “GET /heute/partial HTTP/1.1” 200 42872 “deleted/heute” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0”
172.68.214.201 - - [15/Jun/2020:07:48:03 +0000] “GET /heute/partial HTTP/1.1” 200 42872 “deleted/heute” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36”
172.68.50.83 - - [15/Jun/2020:07:48:13 +0000] “GET /heute/partial HTTP/1.1” 200 42872 “deleted/heute” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15”
172.68.50.83 - - [15/Jun/2020:07:48:26 +0000] “GET /heute/partial HTTP/1.1” 200 42835 “deleted/heute” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0”
188.114.102.57 - - [15/Jun/2020:07:48:39 +0000] “GET /heute/partial HTTP/1.1” 200 42835 “deleted/heute” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0”
Thank you for any insight! Also if there is a configuration / added product solution to this (ensure my origin only gets a call every 12 seconds) I would love to hear about it.