Skip to main content

Deploying SpeedWorkers with Salesforce Commerce Cloud (SFCC)

📘 This article explains how to configure your Salesforce Commerce Cloud (SFCC) settings to be compatible with SpeedWorkers.

Overview

SpeedWorkers delivers fully rendered versions of your pages to search engine
and AI bots in hundreds of milliseconds. On SFCC, SpeedWorkers is deployed
through a Botify-managed edge configuration placed in front of your SFCC
​eCDN: bot traffic is served from the SpeedWorkers cache, while all regular
visitor traffic flows to your storefront exactly as before. No code change is
required in your SFCC environment.

How it works

                         ┌── Search engine / AI bot ──► SpeedWorkers cache
Your domain ──► Botify ──┤ (cache miss/timeout ──► SFCC eCDN)
(DNS CNAME) managed │
edge └── Regular visitors ─────────► SFCC eCDN (unchanged)
  • Botify's edge intercepts requests from a configurable list of bots based on your subscription
    (Googlebot, Bingbot, AI crawlers, …) and serves them pre-rendered pages from
    the SpeedWorkers cache.

  • If a page is not cached, or SpeedWorkers does not answer within the timeout,
    the request transparently falls back to your SFCC storefront. Bots always
    get a valid response.

  • Regular visitors are never affected: their requests go straight to your
    eCDN, and SpeedWorkers responses are never served to humans.

  • The Botify layer caches nothing. Cache management remains exactly the
    one configured in SFCC: your eCDN and page cache keep handling caching and
    delivery as today, with no second cache added in front of them.

One configuration change on your side: bot rules in your eCDN

⚠️ This is the only change the deployment requires in your SFCC

configuration. Plan to implement this change before you go live with SpeedWorkers.

Your storefront eCDN and the Botify edge are both Cloudflare-based, so the
setup is an orange-to-orange chain. In that chain, Cloudflare evaluates bot
detection on the first layer the request reaches — the Botify edge. Your
eCDN sits behind it and no longer performs that evaluation, so the
cf.client.bot field is false for every request arriving at your eCDN,
including requests from genuinely verified bots such as Googlebot.

Any eCDN rule whose expression relies on cf.client.bot therefore stops
behaving as intended. The common case is an allowlist rule placed in front of a
geo-protection or rate-limiting rule: it stops matching, and verified bots start
being blocked or challenged by the rule underneath (403 responses or
challenges served to Googlebot, google-storebot, Bingbot, and other
crawlers).

To replace that signal, the Botify edge adds a request header to every request
it forwards to your eCDN:

Header

Value

Meaning

x-verified-bot

1

Cloudflare verified bot

What you need to do

  1. Review all of your eCDN configuration for expressions that use
    ​cf.client.bot (or cf.verified_bot_category), in Business Manager
    (Administration > Sites > Embedded CDN Settings) or through the SFCC CDN
    API. Check every rule type and every site and environment of your
    realm:

    • eCDN custom rules (custom firewall rules),

    • rate limiting rules,

    • any other rule referencing bot fields.

    Exporting the rules (for example via the CDN API firewall-custom/rules
    endpoint) is the most reliable way to be exhaustive — one forgotten
    allowlist rule is enough to start blocking Googlebot.

  2. Recommended: deploy the migrated rules before the DNS switch, using the
    ​OR of both conditions. cf.client.bot keeps working for the hostnames not
    yet routed through Botify, and the header takes over for the routed ones, so
    the rule is correct at every stage of the rollout:
    ​

    (cf.client.bot or http.request.headers["x-verified-bot"][*] eq "1")


    You can drop the cf.client.bot part once all your hostnames are routed
    through the Botify edge.

Your Botify team validates this together with you during the test-subdomain
phase (see Step 4) and reviews your eCDN Firewall Events after go-live.

Requirements

  • If you ingest server logs for SEO analysis, make sure the ingestion includes
    the SpeedWorkers origins (*.speedworkers.com).

  • Do not use Activation CDN if you already your own Cloudflare zone in front of SFCC.

To set this up, you need:

  1. An SFCC Proxy Zone. Your SFCC environment's embedded CDN (eCDN) must be
    a Proxy Zone (the current standard). Legacy eCDN zones do not support this
    setup. Contact Salesforce support to migrate first if needed. Quick check:
    if your storefront CNAME starts with commcloud. and ends with
    ​.cc-ecdn.net, it is a Proxy Zone; if it ends with .cdn.cloudflare.net,
    it is a legacy zone.

  2. Your eCDN CNAME target, which looks like
    ​commcloud.prod-<realm>-<your-domain>.cc-ecdn.net. You will find it in
    Business Manager (Embedded CDN settings) or in your current DNS records.

  3. Access to Business Manager, to register the routed hostnames (hostname
    aliases) and verify your storefront TLS certificate covers them.

  4. Access to your DNS provider, to create CNAME and TXT records, and to
    lower their TTL to 5 minutes before the switch.

  5. A test subdomain (e.g., staging.yourdomain.com) not used by your live
    site. The whole setup is always validated on this subdomain first,
    before any production change.

  6. The list of your eCDN rules that use cf.client.bot, and the ability to
    update them (see the section above).

Implementation steps

Step 0 - Remove Cloudflare Zone Hold

The Cloudflare Zone Hold is enabled by SFCC on your domain, preventing Activation
CDN from routing the traffic to its Cloudflare zone.

Contact the SFCC support to ask for the removal of the Cloudflare Zone Hold on your
domain.

Step 1 - Kickoff

Provide your Botify team with:

  • the root domain and the subdomains to route (a test subdomain first, then
    www),

  • your eCDN CNAME target (commcloud.<env>-<realm>-<domain>.cc-ecdn.net),

  • confirmation that your eCDN is a Proxy Zone,

  • the list of your eCDN rules (custom rules and rate limiting rules) that use
    ​cf.client.bot.

Botify provisions the edge configuration and sends you the exact DNS records
to create.

Step 2 - Register the hostnames in Business Manager

Add every hostname that will be routed through Botify, including the test
subdomain, as a hostname alias for your site, and make sure the
storefront TLS certificate managed in Business Manager covers these
hostnames. Without this, SFCC rejects requests for the new hostnames.

Step 3 - Create the DNS records

At your DNS provider, create the records provided by Botify:

Type

Name

Target

TTL

Purpose

CNAME

staging.yourdomain.com

staging.yourdomain.com.cdn.cloudflare.net

300 (5 min)

Routes traffic to Botify

TXT

(provided by Botify)

(provided by Botify)

default

TLS certificate validation

💡 We recommend a TTL of 5 minutes (300 seconds) on these CNAME records, both for the test subdomain and, later, for www when going live. With a
5-minute TTL, restoring the previous record is enough to roll back the whole
setup, and the rollback takes effect within minutes instead of hours. Set it
​before the switch: lowering the TTL only takes effect once the previously
cached value has expired. Once the setup has been stable in production, you
can raise the TTL back to your usual value.

You keep full authority over your DNS: only the subdomains you point to Botify
are affected, and you can revert at any time by restoring the previous record.

If your domain uses CAA records, make sure they allow the certificate
authority used by Botify (Google Trust Services or Let's Encrypt). Your
Botify team will confirm which one applies.

Step 4 - Validation on the test subdomain

Once DNS has propagated and certificates are active, Botify runs (and you can
reproduce) three standard tests against the test subdomain, using the
dedicated test user-agent botify-bot-sw-test, no real bot or visitor
traffic is involved. The test options require the x-sw-options-auth header
containing your website ID (provided by your Botify team).

Test 1 - Always success (SpeedWorkers is reachable):

curl -si https://staging.yourdomain.com/ \
-H "User-Agent: botify-bot-sw-test" \
-H "x-sw-options-auth: YOUR_WEBSITE_ID"

Expected: HTTP 200, body Success, X-Sw-* response headers present.

Test 2 - Cache miss (fallback to your storefront works):

curl -si https://staging.yourdomain.com/ \
-H "User-Agent: botify-bot-sw-test" \
-H "x-sw-options-auth: YOUR_WEBSITE_ID" \
-H "X-Sw-Options: always-notfound"

Expected: HTTP 200 with your storefront page, no X-Sw headers.

Test 3 - Timeout (fallback when SpeedWorkers is slow):

curl -si https://staging.yourdomain.com/ \
-H "User-Agent: botify-bot-sw-test" \
-H "x-sw-options-auth: YOUR_WEBSITE_ID" \
-H "X-Sw-Options: always-timeout"

Expected: HTTP 200 with your storefront page after a short delay, no X-Sw
headers.

Also verify with a normal browser that the test subdomain behaves exactly like
your live storefront: pages, basket, locale handling, session cookies.

This is also the moment to validate your migrated bot rules: with the
updated expressions deployed, confirm in your eCDN Firewall Events that the
rules relying on x-verified-bot match as your previous cf.client.bot rules
did, and that no bot traffic is blocked or challenged on the test subdomain.

Step 5 - Go live

After validation on the test subdomain:

  1. You add the production DNS records (same as Step 3, for www), again with
    a TTL of 5 minutes (300 seconds). If the current record has a longer TTL,
    lower it a few hours before the switch so the short value is already in
    effect on go-live day, and keep it short for the first days in production so
    a rollback stays fast.

  2. You confirm your migrated eCDN rules are deployed for the production
    hostname (ideally in the OR form described above, which is correct both
    before and after the DNS switch).

  3. Botify switches the production hostname to the SpeedWorkers configuration
    and enables the production bot list (search engine and AI bots).

  4. The three tests are re-run on the production hostname.

The switch is reversible at any time: pointing the DNS record back to your
eCDN CNAME (effective within ~5 minutes thanks to the short TTL), or a single
change on the Botify side, restores the previous behavior.

Caching and SEO considerations

  • The Botify layer caches nothing: cache management remains the one
    configured in SFCC. Your eCDN keeps serving visitor traffic from its cache
    as today, and only bots see pre-rendered SpeedWorkers pages (never cached at
    the edge).

  • If your Bot traffic on your origin drops significantly; monitor bot activity from
    the Botify app rather than origin-side metrics.

  • If you use Geo-IP or WAF rules in SFCC, tell your Botify team so client IP
    forwarding can be verified during validation.

  • During the first days after go-live, watch your eCDN Firewall Events for
    403s or challenges on search-engine and AI bot user-agents: that is the
    signature of a rule still relying on cf.client.bot.


FAQs

Does this affect my human visitors?

No. Non-bot requests are forwarded to your SFCC storefront unchanged, including sessions, basket and checkout, with SFCC's caching working exactly as before.

Why does cf.client.bot stop working in my eCDN rules?

Because bot detection is evaluated on the first Cloudflare layer the request reaches, which is now the Botify edge. Your eCDN no longer evaluates it and always sees cf.client.bot = false. Use the x-verified-bot request header instead: http.request.headers["x-verified-bot"][*] eq "1".

Can I still identify verified bots in my eCDN logs?

Yes — the x-verified-bot request header is available to your eCDN rules and log
configuration like any other request header.

What if SpeedWorkers is down?

Every bot request has a strict timeout; on any failure the request falls back to your storefront automatically.

Who manages TLS certificates?

Botify manages certificates on its edge for the routed hostnames; your storefront certificate stays managed in Business Manager as today. Both must cover the routed hostnames.

Do I need to change my SFCC code?

No. The deployment only involves DNS records, Business Manager configuration and, if applicable, your eCDN bot rules; there is no cartridge or controller change.

For any questions, contact your Customer Enablement Manager.

Did this answer your question?