I’m trying to cache static html from my origin server. I have made a rule for https:// * www.mydomain.xxx/ *; set it to Cache Everything, Browser Cache TTL: a month.
When i make a request, i see in the response header this: “cf-cache-status: Hit ” for homepage and for every other page either it is Product page, Contact page or My account it is “cf-cache-status: Miss” There is something obvious i’m missing so i’d appreciate any hints.
It could be a cookies issue, as Cloudflare generally won’t cache when cookies are involved. Without the actual URL, we can’t give a more accurate answer.
We’re just not seeing that, and you apparently haven’t provided a specific URL that demonstrates this problem…which is different from your initial MISS problem.
However, if I put something in the Shopping cart, WC sets a cookie, and Cloudflare knows better than to start caching once someone starts using their shopping cart.
Thanks I think this was missing in my page rule. It does hit cache but sometimes it does miss too. I think I have not defined page rules correctly. I have defined 2 rules, would you mind checking which one is actually useful?
The first asterisk * in the first page rule is only useful if you have other subdomain in front of www (e.g. abc.www.base53.com). If you don’t have that, you can delete the first page rule.
Can you please tell me one thing. For the same Item which it was showing hit, now I checked and it is showing expired. Cache is expiring too fast. can you please tell me how to solve this issue even I have mentioned edge cache TTL to a month.