• Hi – i have enabled cloudflare super cache for both main site and subdomain subsite. For main domain it is working perfectly. The subdomain is also proxied at cloudflare. i have chosen the parent domain as the domain at the subdomain subsite set up. i have disabled the openlitespeed page caching and disabled fallback cache in CF settings. But still my static pages are not being cached. I am getting the below error>

    Page caching seems not working for both dynamic and static pages.
    
    Error on dynamic page (https://subdomain1.example.cyou): Cache status: DYNAMIC - The resource was not cached by default and your current Cloudflare caching configuration doesn't instruct Cloudflare to cache the resource. Instead, the resource was requested from the origin web server.
    
    Error on static resource (https://subdomain1.example.cyou/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Unable to find the Cache-Control response header.
    
    Please check if the page caching is working by yourself by surfing the website in incognito mode 'cause sometimes Cloudflare bypass the cache for cURL requests. Reload a page two or three times. If you see the r++esponse header cf-cache-status: HIT, the page caching is working well.

    kindly please advise

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mattrin

    (@mattrin)

    Cache Header: Shows up as by pass:

    Date: Mon, 07 Jun 2021 05:57:24 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    set-cookie: tm_visit=1; path=/
    link: <https://XXXXX.example.cyou/wp-json/&gt;; rel=”https://api.w.org/&#8221;
    cache-control: s-maxage=0, max-age=0
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-maxage=0, max-age=0
    x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled
    vary: Accept-Encoding
    strict-transport-security: max-age=15552000
    CF-Cache-Status: BYPASS
    cf-request-id: 0a86a5173e000006cd3d0e1000000001
    Expect-CT: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct&#8221;
    Report-To: {“endpoints”:[{“url”:”https:\/\/a.nel.cloudflare.com\/report\/v2?s=w5HnGU5lYwEe8M7A8mXrJxZW43M%2FKFDuOMkX5wTVP4myjJ%2F22clgONJ3d%2F6SSnFKwM9n5YDlsh6tqhURncgTHa3SNMElov48uSjeelTWGk8voFYtKFmKVNBg2AKD5pyRydQqAYP9xb4%2B”}],”group”:”cf-nel”,”max_age”:604800}
    NEL: {“report_to”:”cf-nel”,”max_age”:604800}
    Server: cloudflare
    CF-RAY: 65b7a46b9bdb06cd-LHR
    alt-svc: h3-27=”:443″; ma=86400, h3-28=”:443″; ma=86400, h3-29=”:443″; ma=86400, h3=”:443″; ma=86400

    Plugin Contributor iSaumya

    (@isaumya)

    On each subdomain site you need to install the plugin separately, add the CF API details and let the plugin create it’s own page rule for that subdomain.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CF Super cache for multisite subdomain’ is closed to new replies.