{"id":17959681,"date":"2024-08-17T22:12:28","date_gmt":"2024-08-17T22:12:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/test-fails-cf-cache-status-bypass\/"},"modified":"2024-08-17T22:12:28","modified_gmt":"2024-08-17T22:12:28","slug":"test-fails-cf-cache-status-bypass","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/test-fails-cf-cache-status-bypass\/","title":{"rendered":"Test fails \/ cf-cache-status: Bypass"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Looking at the header info, the plugin seems to be loading fine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">on CF side, I have no Page Rules active and one Cache Rule set as follows:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(http.host eq &#8220;mysite.com&#8221; and not starts_with(http.request.uri.path, &#8220;\/wp-admin&#8221;) and not starts_with(http.request.uri.path, &#8220;\/wp-login&#8221;) and not starts_with(http.request.uri.path, &#8220;\/wp-json\/&#8221;) and not starts_with(http.request.uri.path, &#8220;\/wc-api\/&#8221;) and not starts_with(http.request.uri.path, &#8220;\/edd-api\/&#8221;) and not starts_with(http.request.uri.path, &#8220;\/mepr\/&#8221;) and not http.request.uri.path contains &#8220;\/register\/&#8221; and not http.request.uri.path contains &#8220;\/dashboard\/&#8221; and not http.request.uri.path contains &#8220;\/members-area\/&#8221; and not http.request.uri.path contains &#8220;\/wishlist-member\/&#8221; and not http.request.uri.path contains &#8220;phs_downloads-mbr&#8221; and not http.request.uri.path contains &#8220;\/checkout\/&#8221; and not http.request.uri.path contains &#8220;.xsl&#8221; and not http.request.uri.path contains &#8220;.xml&#8221; and not http.request.uri.path contains &#8220;.php&#8221; and not starts_with(http.request.uri.query, &#8220;s=&#8221;) and not starts_with(http.request.uri.query, &#8220;p=&#8221;) and not http.request.uri.query contains &#8220;nocache&#8221; and not http.request.uri.query contains &#8220;nowprocket&#8221; and not http.cookie contains &#8220;wordpress_logged_in_&#8221; and http.cookie ne &#8220;comment_&#8221; and not http.cookie contains &#8220;woocommerce_&#8221; and not http.cookie contains &#8220;wordpressuser_&#8221; and not http.cookie contains &#8220;wordpresspass_&#8221; and not http.cookie contains &#8220;wordpress_sec_&#8221; and not http.cookie contains &#8220;yith_wcwl_products&#8221; and not http.cookie contains &#8220;edd_items_in_cart&#8221; and not http.cookie contains &#8220;it_exchange_session_&#8221; and not http.cookie contains &#8220;comment_author&#8221; and not http.cookie contains &#8220;dshack_level&#8221; and not http.cookie contains &#8220;auth_&#8221; and not http.cookie contains &#8220;noaffiliate_&#8221; and not http.cookie contains &#8220;mp_session&#8221; and not http.cookie contains &#8220;xf_&#8221; and not http.cookie contains &#8220;mp_globalcart_&#8221; and not http.cookie contains &#8220;wp-resetpass-&#8221; and not http.cookie contains &#8220;upsell_customer&#8221; and not http.cookie contains &#8220;wlmapi&#8221; and not http.cookie contains &#8220;wishlist_reg&#8221;)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Page caching seems not working for both dynamic and static pages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Error on dynamic page (https:\/\/somervilledanceacademy.com): Cache status: BYPASS &#8211; Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Error on static resource (https:\/\/somervilledanceacademy.com\/wp-content\/plugins\/wp-cloudflare-page-cache\/assets\/testcache.html): Unable to find the Cache-Control response header.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please check if the page caching is working by yourself by surfing the website in incognito mode &#8217;cause sometimes Cloudflare bypass the cache for cURL requests. Reload a page two or three times. If you see the response header <strong>cf-cache-status: HIT<\/strong>, the page caching is working well.<\/p>\n","protected":false},"template":"","class_list":["post-17959681","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17959681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17959681\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17959681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}