• Resolved Rajesh Namase

    (@namaserajesh)


    Hello there,

    I went through all the steps properly to make it work. But I am not sure headers are correct and the plugin is working or not.

    Headers:

    cache-control: public
    cf-cache-status: HIT
    cf-ray: 6a655c3a0df96e97-BOM
    content-encoding: br
    content-type: text/html; charset=UTF-8
    date: Sat, 30 Oct 2021 14:33:42 GMT
    expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    expires: Sat, 30 Oct 2021 15:04:18 GMT
    last-modified: Sat, 30 Oct 2021 14:04:19 GMT
    link: <https://www.techlila.com/wp-json/>; rel="https://api.w.org/", <https://www.techlila.com/wp-json/wp/v2/pages/29579>; rel="alternate"; type="application/json", <https://www.techlila.com/>; rel=shortlink
    nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    referrer-policy
    report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=450IH1MALqaprM8mPU56Z%2BrzZy4RvCA6aE8duPCyxphE%2BJmc3lDldahRDzSVBQy8tec1Xvy0u%2F%2B8BQN9rJrK6V3yOrCLewsCiFhO%2BnWMvOGs4HwcCDcC%2B5Wn9Ct%2FpcpOJbiT"}],"group":"cf-nel","max_age":604800}
    server: cloudflare
    strict-transport-security: max-age=15552000; preload
    vary: Accept-Encoding
    x-cache: MISS
    x-ua-compatible: IE=edge
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-maxage=31536000, max-age=60
    x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled

    Please let me know everything is alright or do I need to fix something? Thank you.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Rajesh Namase

    (@namaserajesh)

    Also, sometimes it shows like this:

    
    cache-control: public
    cf-cache-status: EXPIRED
    cf-ray: 6a665325fdda6e9a-BOM
    content-encoding: br
    content-type: text/html; charset=UTF-8
    date: Sat, 30 Oct 2021 17:22:16 GMT
    expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    expires: Sat, 30 Oct 2021 15:04:42 GMT
    last-modified: Sat, 30 Oct 2021 17:22:12 GMT
    link: <https://www.techlila.com/wp-json/>; rel="https://api.w.org/", <https://www.techlila.com/wp-json/wp/v2/posts/28389>; rel="alternate"; type="application/json", <https://www.techlila.com/?p=28389>; rel=shortlink
    nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    referrer-policy
    report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=y%2Bsdg1qg9yHnNHCh8fT0EXlyBjsHuUAtcw4nM4fVdAjZsnOhT%2BNMlOdjg5fqMa4VTDmPF%2FrqG8zphK95wn3VF3rsXRAFot6Eboxov4IEIxD4B0F9Plu6%2B8gUiNtrtXAmY9BR"}],"group":"cf-nel","max_age":604800}
    server: cloudflare
    strict-transport-security: max-age=15552000; preload
    vary: Accept-Encoding
    x-cache: HIT
    x-ua-compatible: IE=edge
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-maxage=31536000, max-age=60
    x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled
    

    How to fix it? Please help.

    Thread Starter Rajesh Namase

    (@namaserajesh)

    I checked other support threads, these two values are not the same in my case – https://imgur.com/utvqasy

    In my case, it’s showing

    cache-control: public

    and x-wp-cf-super-cache-cache-control: s-maxage=31536000, max-age=60

    I tried disabling W3 Total Cache still no change. I don’t know from where cache-control: public is coming. I am using Cloudways (DigitalOcean server) so please help me to resolve this.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi, your setup is not right. When the plugin is working properly the cache-control header value should be equal to the x-wp-cf-super-cache-cache-control value which it is not. So, it is not working.

    Now you need to find from where the cache-control: public is getting added? Try disabling any other cache plugins you have. Check your Must Use (mu-plugins) if there is something. Check your server configuration .htaccess or nginx.conf file based on your setup.

    Basically, currently the plugin is unable to manage the cache-control header as that data is current getting added by some place else and not letting the plugin to add that data.

    Do you know aht kind of server you are running? I mean apache or lightspeed or nginx?

    Thread Starter Rajesh Namase

    (@namaserajesh)

    Ezoic was not properly allowed to add the headers so uninstalled the plugin.

    PS: It’s working properly on my other sites (We are not using Ezoic on those sites).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘cache-control: public and cf-cache-status: HIT Is this correct?’ is closed to new replies.