• Hello,

    I just note that cf-cache-status does not show up for a domain which was migrated to cloudflare, but only show:

    x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled
    x-download-options: noopen
    x-wp-cf-super-cache-cache-control: s-maxage=31536000, max-age=60
    x-fastcgi-cache: HIT
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1

    Please check the screenshot https://prnt.sc/_XglGe4uuSZ1

    So, how long does it take to show up please?

    and, “Test Cache” will be successful only cf-cache-status show HIT, right?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    If you have just migrated the site to Cloudfalre, it takes some time for the nameserve change to take effect. Officially it might take 24-48 hours but it never takes that long.

    After that if you have enabled the orange cloud for your main DNS records then the traffic will go though Cloudflare system and caching will work. Currently it seems the traffic is not getting proxied via Cloudflare system.

    As I can see that on my end everything is working as they should and traffic is getting proxied via Cloudflare. But the cache status is BYPASS because you have many cookies being set at the page level via the response header (set-cookie).

    When Cloudflare sees set-cookie in the response header, it will not cache the page thinking the cookie values might be used inside the page to show dynamic content. So, if you want to make these page cachable, you need to find which plugins are adding these cookies and remove them.

    Rather consider using JavaScript localStorage API to store data at the browser level. Or maybe use JavaScript to create/manage the cookies instead of doing them this way.

    Thread Starter alexliii

    (@alexliii)

    Great, much professional tutorial.

    When Cloudflare sees set-cookie in the response header, it will not cache the page thinking the cookie values might be used inside the page to show dynamic content. So, if you want to make these page cachable, you need to find which plugins are adding these cookies and remove them.

    Rather consider using JavaScript localStorage API to store data at the browser level. Or maybe use JavaScript to create/manage the cookies instead of doing them this way.

    Is there any tools or plugin to acheive the purpose to manage those cookie you mention above?

    Thanks

    Thread Starter alexliii

    (@alexliii)

    By the way, your screenshot looks like this way:

    https://prnt.sc/fVsuMdfvNTRY

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    here is the image: https://prnt.sc/iMBuLN7SMSy9

    Is there any tools or plugin to acheive the purpose to manage those cookie you mention above?

    Sorry! I did not understand your question

    Thread Starter alexliii

    (@alexliii)

    Thanks.

    When Cloudflare sees?set-cookie?in the response header, it will not cache the page thinking the cookie values might be used inside the page to show dynamic content. So, if you want to make these page cachable, you need to find which plugins are adding these cookies and remove them.

    I mean, actually, I do not know how those cookies work, and whether or how to remove or manage cookies.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @alexliii,
    In a staging environment you can try to disable plugins to see which plugin is adding those cookies. It is not possible for me to say which plugin is adding those cookies.

    Thread Starter alexliii

    (@alexliii)

    If I know the specific plugin that added those cookies, how how I remove the cookies? Any tool or plugin recommend?

    thanks

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @alexliii,
    It’s best to talk with the plugin author asking them to stop the reliance on the cookies or create/mamane the cookies at javascript level so that the page can be cachable.

    You can use the Strip response cookies on pages that should be cached option under plugin settings > cache tab. But it is generally not recommended.

    This is because if you enable this option, then the system will remove all cookies from the response header and you might have diverse effect on your website causing the website not working properly. So, if you enable this option, make sure you test the website in every possible way to ensure that you website is working as intended without the cookies.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How long cf-cache-status to show up?’ is closed to new replies.