• Resolved bobsled

    (@bobsled)


    Caching is working 100% for my site, but only for the non-www URLs. That’s correct, but for any hits using the www version of my site they fail to cache and go to dynamic. It’s not a big deal because it’s mainly bot hits.

    But when I checked the “SPCFC Cache Rule ➜ Cache Eligible Requests” rule on Cloudflare, I see that the first entry is “Hostname equals example.com”

    If I changed the rule from “equals” to “contains” would that then cache both www and non-www hits?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Andrei Baicus

    (@baicusandrei)

    Hello @bobsled,

    That behavior is expected if the cache rule is only set for example.com. Since the plugin keeps that rule in sync, changing it manually to cover www wouldn’t be a good long-term fix.

    The better approach is to redirect www to the apex so there’s only one canonical hostname in use. That keeps caching consistent, avoids duplicate behavior between www and non-www, and ensures the plugin-managed rule continues to work as intended.

    So my personal recommendation is keeping the cache rule as-is and handling www via a redirect instead.

    Thread Starter bobsled

    (@bobsled)

    Ok, thanks for your advice. I have a redirect in place on my server.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.