What is the name of the domain?
What is the error message?
NA
What is the issue you’re encountering
NA
What steps have you taken to resolve the issue?
Our abc.com website is a Magento2 website hosted on cPanel server with DNS on Cloudflare.
Currently we have 4 cache rules setup for it.
-
Bypass checkout, cart, customer and admin [(http.request.uri.path contains “/checkout*”) or (http.request.uri.path contains “/cart*”) or (http.request.uri.path contains “/customer*”) or (http.request.uri.path contains “/admin*”) or (http.request.uri.path contains “/rest/") or (http.request.uri.path contains "/graphql”)]
-
Static content for 1 day
(http.host eq “www.abc.com” and starts_with(http.request.uri, “/static”)) -
Media content for 1 day
(http.host eq “www.abc.com” and starts_with(http.request.uri, “/media”)) -
Website content (Use cache-control header if present, bypass cache if not and Respect origin TTL)
(http.host eq “www.abc.com”)
Please suggest if these rules are OK and any other rules need to be added ?