the situation is pretty basic - Edge cache for 7 days is not being enforced by the PageRules
Below are my rules
I have a custom script that load the sitemap.xml from the domain, and fetch URLs that are to be cached by the rules
Below is the code that handles the requests (via cURL)
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => 1, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 999, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', )); $response = curl_exec($curl);
When $url is the URL to fetch.
The script handles the output and creates a CSV file with the output of CF-Cache-Status header.
Below is one of the lines
Date, Hour, URL, StatusCode, CacheStatus
What happens is this script executes every night (since 14 December) and every day i get about 60-65% of misses from a global lists of around 3300 links.
This makes no sense, since at least from 15-16 January all links should be cached and we should always get a HIT status