• Resolved alexliii

    (@alexliii)


    Hello,

    I am fresh with Cloudfare, and the test cache is always failed. Here is test process:

    1# Add domain on cloudflare with free try.

    2# We create site with SSL with Let’s Encrypt by following post at https://docs.wordops.net/how-to/configure-letsencrypt-dns-api-validation/

    3# On Cloudflare, we set SSL/TLS as Full, otherwise, the site will unaccessible both for backend and frontend if this plugin is activated, and it will show “This page isn’t working right now” and ERR_TOO_MANY_REDIRECTS even if we access site with /?swcfpc=1, and here is screenshot at https://prnt.sc/ypb2VVw_-6pt.

    “Purge everything” did not fixed the it.

    4# On Super Page Cache for Cloudflare, we use all default setting.

    5# On our server, we use Nginx fastcgi_cache and Nginx helper on wordpress.

    Issue please:

    1# In this case, when “Test Cache” will be failed and reset plugin setting does not fixed it, and please check the screenshot: https://prnt.sc/mvtvpYk6tG-v

    2# In response header, it show

    access-control-allow-origin: *
    age: 16
    alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
    cache-control: max-age=2592000
    cf-cache-status: HIT
    cf-ray: 7948de244875fa66-SJC
    content-encoding: br
    content-type: application/javascript
    date: Sun, 05 Feb 2023 04:22:55 GMT
    etag: W/"63de7acb-4991"
    expires: Tue, 07 Mar 2023 04:22:39 GMT
    last-modified: Sat, 04 Feb 2023 15:33:31 GMT
    nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    referrer-policy: strict-origin-when-cross-origin
    report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=TN293UfxVH6%2FYWgLL2AGXnWRogJs8ne09LTmQMkj1hQqLbzfNqM9z1pX0F5tz6daDX1QDnBkIxd%2B3%2Fv6adzz5eYw0w7ny7jxxRfa%2BVa69JSE7lHGue8J91PcnD49"}],"group":"cf-nel","max_age":604800}
    server: cloudflare
    vary: Accept-Encoding

    Export Json File:

    {"cf_zoneid":"cde1cb35dfsdfsdfsfds42e7a1b602fb4","cf_zoneid_list":{"oursite.net":"cde1cb353a7ecsdfsdfsf9eaea42e7asd34a1b602fb4"},"cf_email":"myemail@yahoo.com","cf_apitoken":"87b0edccbd43431afdgefd3def3a03462dedb25b9b6f5c","cf_apikey":"87ghb0edccbd3134343423sdfjafd3dedfgsdf3a062dedb25b9b6f5c","cf_token":"","cf_apitoken_domain":"mysite.net","cf_old_bc_ttl":"0","cf_page_rule_id":"d70bd95e990dcb9c28b31bcdfbe40d81","cf_bypass_backend_page_rule_id":"","cf_bypass_backend_page_rule":"0","cf_auto_purge":"1","cf_auto_purge_all":"0","cf_auto_purge_on_comments":"0","cf_cache_enabled":"1","cf_maxage":"31536000","cf_browser_maxage":"60","cf_post_per_page":"10","cf_purge_url_secret_key":"8EjjNvznqbh0DeKXAMZz","cf_strip_cookies":"0","cf_fallback_cache":"0","cf_fallback_cache_ttl":"0","cf_fallback_cache_auto_purge":"1","cf_fallback_cache_curl":"0","cf_fallback_cache_excluded_urls":[],"cf_fallback_cache_excluded_cookies":["^wordpress_logged_in_","^wp-","^comment_","^woocommerce_","^wordpressuser_","^wordpresspass_","^wordpress_sec_"],"cf_fallback_cache_save_headers":"0","cf_fallback_cache_prevent_cache_urls_without_trailing_slash":"1","cf_preloader":"0","cf_preloader_start_on_purge":"1","cf_preloader_nav_menus":[],"cf_preload_last_urls":"1","cf_preload_excluded_post_types":["attachment","jet-menu","elementor_library","jet-theme-core"],"cf_preload_sitemap_urls":[],"cf_woker_enabled":"0","cf_woker_id":"swcfpc_worker_1675565758","cf_woker_route_id":"","cf_worker_bypass_cookies":[],"cf_purge_only_html":"0","cf_disable_cache_purging_queue":"0","cf_auto_purge_on_upgrader_process_complete":"0","cf_excluded_urls":["\/*ao_noptirocket*","\/*jetpack=comms*","\/*kinsta-monitor*","*ao_speedup_cachebuster*","\/*removed_item*","\/my-account*","\/wc-api\/*","\/edd-api\/*","\/wp-json*","\/checkout\/*","\/cart\/*"],"cf_bypass_front_page":"0","cf_bypass_pages":"0","cf_bypass_home":"0","cf_bypass_archives":"0","cf_bypass_tags":"0","cf_bypass_category":"0","cf_bypass_author_pages":"0","cf_bypass_single_post":"0","cf_bypass_feeds":"1","cf_bypass_search_pages":"1","cf_bypass_404":"1","cf_bypass_logged_in":1,"cf_bypass_amp":"0","cf_bypass_file_robots":"1","cf_bypass_sitemap":"1","cf_bypass_ajax":"1","cf_cache_control_htaccess":"0","cf_browser_caching_htaccess":"0","cf_auth_mode":"0","cf_bypass_query_var":"0","cf_bypass_wp_json_rest":"0","cf_varnish_support":"0","cf_varnish_auto_purge":"1","cf_varnish_hostname":"localhost","cf_varnish_port":"6081","cf_varnish_cw":"0","cf_varnish_purge_method":"PURGE","cf_varnish_purge_all_method":"PURGE","cf_bypass_woo_shop_page":"0","cf_bypass_woo_pages":"0","cf_bypass_woo_product_tax_page":"0","cf_bypass_woo_product_tag_page":"0","cf_bypass_woo_product_cat_page":"0","cf_bypass_woo_product_page":"0","cf_bypass_woo_cart_page":"1","cf_bypass_woo_checkout_page":"1","cf_bypass_woo_checkout_pay_page":"1","cf_auto_purge_woo_product_page":"1","cf_auto_purge_woo_scheduled_sales":"1","cf_bypass_woo_account_page":"1","cf_spl_purge_on_flush_all":"1","cf_spl_purge_on_flush_single_post":"1","cf_w3tc_purge_on_flush_minfy":"0","cf_w3tc_purge_on_flush_posts":"0","cf_w3tc_purge_on_flush_objectcache":"0","cf_w3tc_purge_on_flush_fragmentcache":"0","cf_w3tc_purge_on_flush_dbcache":"0","cf_w3tc_purge_on_flush_all":"1","cf_wp_rocket_purge_on_post_flush":"1","cf_wp_rocket_purge_on_domain_flush":"1","cf_wp_rocket_purge_on_cache_dir_flush":"1","cf_wp_rocket_purge_on_clean_files":"1","cf_wp_rocket_purge_on_clean_cache_busting":"1","cf_wp_rocket_purge_on_clean_minify":"1","cf_wp_rocket_purge_on_ccss_generation_complete":"1","cf_wp_rocket_purge_on_rucss_job_complete":"1","cf_litespeed_purge_on_cache_flush":"1","cf_litespeed_purge_on_ccss_flush":"1","cf_litespeed_purge_on_cssjs_flush":"1","cf_litespeed_purge_on_object_cache_flush":"1","cf_litespeed_purge_on_single_post_flush":"1","cf_flypress_purge_on_cache_flush":"1","cf_hummingbird_purge_on_cache_flush":"1","cf_wp_optimize_purge_on_cache_flush":"1","cf_yasr_purge_on_rating":"0","cf_wpacu_purge_on_cache_flush":"1","cf_autoptimize_purge_on_cache_flush":"1","cf_nginx_helper_purge_on_cache_flush":"1","cf_wp_performance_purge_on_cache_flush":"1","cf_bypass_edd_checkout_page":"1","cf_bypass_edd_success_page":"0","cf_bypass_edd_failure_page":"0","cf_bypass_edd_purchase_history_page":"1","cf_bypass_edd_login_redirect_page":"1","cf_auto_purge_edd_payment_add":"1","cf_wpengine_purge_on_flush":"1","cf_spinupwp_purge_on_flush":"1","cf_kinsta_purge_on_flush":"1","cf_siteground_purge_on_flush":"1","log_enabled":"1","log_max_file_size":"2","log_verbosity":"1","cf_remove_purge_option_toolbar":"0","cf_disable_single_metabox":"1","cf_seo_redirect":"0","cf_opcache_purge_on_flush":"0","cf_object_cache_purge_on_flush":"0","cf_purge_roles":[],"cf_prefetch_urls_viewport":"0","cf_prefetch_urls_viewport_timestamp":1675565758,"cf_prefetch_urls_on_hover":"0","cf_remove_cache_buster":"0","keep_settings_on_deactivation":"1","cf_wp_rocket_disable_cache":"0","cf_wp_super_cache_on_cache_flush":"0","cf_preloader_url_secret_key":"YWDYGsiugVomRlzujWF7"}

    Since this is fresh setup, and I did not touch nginx setting for this plugin yet, and would you please let us know what I missed please?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @alexliii,
    Can you please let me know your website address? Also in terms of fixing the too many redirects, try setting the SSL type inside Cloudflare account as Full Strict. Also Inside Cloudflare settings page disable the always use HTTPS option. Once you play with these options, you get to see which setting is actually causing the too many redirect option. It is not this plugin that is causing this, but moreover it might be a bad settings that is causing this issue.

    Thread Starter alexliii

    (@alexliii)

    This issue seems that it need take time to be valid for Cloudflare although they officially claim the setting will be vaild after 30 seconds, but, actually it vary a lot.

    I am in China, and the server is in California US on Digitalcean.

    For now, I enabled Always Use HTTPS, and the test cache is working too.

    It seems that if cf-cache-status show up in the response header, then the test cache will pass, am I right?

    Thanks

    Plugin Contributor iSaumya

    (@isaumya)

    hi @alexliii,
    yes it should but the best way to test is by checking the actual response header.

    Thread Starter alexliii

    (@alexliii)

    I see, much clear.

    Thanks, and mark as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘test cache failed’ is closed to new replies.