• Resolved sarasri

    (@sarasri)


    Hello Team,

    Cloudflare is caching xml sitemap created by Rank Math seo plugin and sitemap is not updating automatically after publishing new article. You can see this image that cloudflare is caching sitemap.
    image link

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @sarasri ,
    thank you. I will look into this. Did you try to exclude the sitemaps via URLs?

    Thread Starter sarasri

    (@sarasri)

    Thanks for replying @salvatorefresta ..

    OK, sitemap is updating but it taking time to update, like 15 to 20 minutes, I do not know how it is working but it updating after some time. But I think it should be excluded from plugin permanently. And I did not try sitemap URL in exclude tab. Can you please let me know how to put sitemap URL in exclusion tab (what is right format).
    And last thing, the sitemap generated by Rank math seo plugin is virtual dynamic.

    Thank You once again…

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @sarasri ,
    I visited your sitemap URL and the response headers are:

    age: 5
    cache-control: maxage=31536000
    cf-cache-status: HIT
    cf-ray: 6119381f9d89f917-MXP
    cf-request-id: 07a3a167bf0000f917762a7000000001
    content-encoding: br
    content-type: text/xml; charset=UTF-8
    date: Thu, 14 Jan 2021 17:53:55 GMT
    expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    expires: Fri, 14 Jan 2022 17:53:49 GMT
    nel: {"report_to":"cf-nel","max_age":604800}
    pragma: public
    report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=%2FkLlElF2kSopeujcMbcX3CumMjf2%2FRMRMG9pJPXYFcXg34K%2FWX1NxSVVWaLgCbdLRk9qqdQCjfMDNpCCrMDr2GdNGOBHG4TZok8R81mG"}],"group":"cf-nel","max_age":604800}
    server: cloudflare
    vary: Accept-Encoding
    x-powered-by: PHP/7.4.11
    x-robots-tag: noindex
    x-turbo-charged-by: LiteSpeed
    x-wp-cf-super-cache: no-cache
    x-wp-cf-super-cache-cache-control: no-store, no-cache, must-revalidate, max-age=0

    As you can see, the x-wp-cf-super-cache-cache-control is set to no-cache but there is a different cache-control.

    So another plugin (or server rule) is adding this cache-control, it’s not a plugin issue.

    Please check your Litespeed server browser caching rules

    Thread Starter sarasri

    (@sarasri)

    Thank You @salvatorefresta

    I will sure check server side cache. But can you please tell me what is cf-cache-status: HIT means? Do cloudflare is caching sitemap URLs?

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    cf-cache-status: HIT means that the page/asset is returned from the Cloudflare cache instead of the original server. So yes, cloudflare is caching your sitemaps due to the cache-control value I shown you before

    Thread Starter sarasri

    (@sarasri)

    I understood, I am closing this topic now.

    And thanks for distributing a great plugin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cloudflare is caching xml Sitemap’ is closed to new replies.