CloudFlare is one of the biggest networks operating on the Internet. People use CloudFlare services for the purposes of increasing the security and performance of their web sites and services. E.g., it can be very helpful to increase server response time for pages and assets.
To set page caching there is a need to apply the next configuration:
1. In Caching -> Configuration
Caching Level -> No query string
2. In Caching -> Cache rules
a. Add item with name Exclude cookies that contains
Cookie -> contains-> wordpress_logged_in
or
Cookie -> contains -> wordpress_test_cookie
or
Cookie -> contains -> woocommerce_cart_hash
with final
Bypass cache
b. Add item with name Exclude pages that contains
URI path -> starts with -> /wp-admin
or
URI path -> starts with -> /wp-login
or
URI path -> starts with -> /cart
or
URI path -> starts with -> /checkout
or
URI path -> starts with -> /my-account
with final
Bypass cache
c. Add item with name Exclude query string that contains
URI Query String contains =
and
URI Query String -> does not contain -> seraph_accel_gp=
and
URI Query String -> does not contain -> seraph_accel_gi=
and
URI Query String -> does not contain -> seraph_accel_ai=
with final Bypass cache
3. In Rules -> Page rules
Cache Level -> Cache Everything
Edge Cache TTL -> a month
Disable Performance (if exists)