Cache on cloudflare for saas

I am little confused, i have custom origin setup with failover origin. When i setup page rule to cache everything with edge TTL to a month on custom origin than i get hit. But when i use page rule in failover origin for the custom origin to cache everything with edge TTL to a month i get dynamic instead of hit from Cloudflare. And also how to purge cache for custom origin. Anyone please help