• Resolved rockstaremperor

    (@rockstaremperor)


    Hi,
    Initially, I activated Page Caching in this plugin. However, to avoid “swcfpc=1” in the links, I enabled Workers mode. It’s been few days since Workers mode was enabled, but CF Cache on the top of WP admin dashboard is always Red and while checking header, I get this:

    cf-cache-status: BYPASS
    x-wp-cf-super-cache: disabled
    x-wp-cf-super-cache-cache-control: no-store, no-cache, must-revalidate, max-age=0

    Here is the screenshot of the Workers page from Cloudflare: https://imgur.com/a/crYtiTx

    Why is Workers not working? Please suggest any other settings I need to enable/modify.
    Thanks.

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

    (@isaumya)

    I don’t see the worker added by the plugin. As the worker name I am seeing in the screenshot is not the name which the plugin added to cloudflare. Are you using Global API or API Token? If you are using API token, make sure it has proper Worker privileges.

    Moreover I am not seeing any routes for any worker.
    Try deactivating the page cache. Add the global API and then then enable page cache again. If worker mode is already enabled this will retry to add the worker along with proper route to that worker in your CF account.

    Thread Starter rockstaremperor

    (@rockstaremperor)

    So I deleted the worker from CF account. Then deactivated and deleted this plugin too. Installed and activated the plugin. Added the Global API Key and enabled Worker mode (did not enable page caching).
    But still no worker/route is created in CF account.
    Screenshot – https://imgur.com/a/c8BphwR

    Thread Starter rockstaremperor

    (@rockstaremperor)

    So I thought if I enabled Workers mode, I do not need to enable Page Caching. I just enabled Page Caching and now Workers account is created at CF. That means Workers and Page Caching both need to be enabled in the plugin, right?
    Here is the screenshot after the worker and route is automatically created by the plugin – https://imgur.com/a/MCvZPTs
    Do I need to enable “Workers.dev” route too?

    In the plugin, I have the default settings enabled only. Only extra settings I have enabled is Fallback Cache since I am using WP-rocket plugin. Do I have to disable Cloudflare in the Wp-rocket settings?

    Plugin Contributor iSaumya

    (@isaumya)

    did not enable page caching

    – Unless you enable page caching, no worker will get added to Cloudflare.

    So I thought if I enabled Workers mode, I do not need to enable Page Caching. I just enabled Page Caching and now Workers account is created at CF.

    – That is totally wrong. The plugin provide CF CDN level page caching using two technique. The default is the page rule mode which comes with the cache buster querey string and the other option is worker mode.

    No matter which option you use, you basically need to enable page caching for the plugin to work and do page caching for you.

    Here is the screenshot after the worker and route is automatically created by the plugin – https://imgur.com/a/MCvZPTs
    Do I need to enable “Workers.dev” route too?

    – Not needed

    Only extra settings I have enabled is Fallback Cache since I am using WP-rocket plugin.

    – That’s fine, but I really don’t think you need wp rocket. You can use Autoptimize for CSS/JS optimization, Optimole, Shortpixel for image optimization etc.

    Do I have to disable Cloudflare in the Wp-rocket settings?

    – Yes

    Thread Starter rockstaremperor

    (@rockstaremperor)

    Got it. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Workers Disabled’ is closed to new replies.