• Resolved shoptak

    (@shoptak)


    Hello Team,

    I’m using a multi-currency plugin on my website

    WP Cloudflare Super Page Cache is only working by enabling Strip response cookies on pages that should be cached: https://ibb.co/pnbTW19

    if I disable the strip option cf-cache-status becomes >BYPASS and if i enable this option its HIT ( Test cache passed and all is fine )

    it seems that this multi-currency plugin is getting affected by the strip option since the related cookie is gone and showing default currency USD instead of the foreign one LBP

    Site: https://baytplus.com

    Strip option OFF ( Not Working cache )
    Response Header (cf-cache-status: BYPASS) : https://ibb.co/5W7Gk8z
    Multi-currency Cookie : https://ibb.co/Qkg2JdG

    Strip Option ON ( Working Cache )
    Response Header ( cf-cache-status: HIT ) : https://ibb.co/hB9tr4Z
    Multi-currency Cookie is gone: https://ibb.co/k57GHpC

    is there a way to exclude this cookie even while enabling the strip option?

    Please advise

    Stay Safe
    Regards,

    • This topic was modified 5 years, 4 months ago by shoptak.
    • This topic was modified 5 years, 4 months ago by shoptak.
    • This topic was modified 5 years, 4 months ago by shoptak.
    • This topic was modified 5 years, 4 months ago by shoptak.
    • This topic was modified 5 years, 4 months ago by shoptak.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @shoptak,
    Cloudflare won’t cache a page which has custom cookies in response header as CF thinks the data of those cookies can be used to dynamically change the content.

    Thread Starter shoptak

    (@shoptak)

    Hi @isaumya,

    Thank you for your prompt reply.

    I really like WP Cloudflare Super Page Cache! it dramatically improved my eCommerce site load time from 5s to 897ms! but since this currency switch is very essential for the business and for some reason I’m getting HIT only by enabling strip cookies option.

    is there any way to exclude this specific cookie from stripping? so I can give it a try.

    Stay Safe
    Regards,

    • This reply was modified 5 years, 4 months ago by shoptak.
    • This reply was modified 5 years, 4 months ago by shoptak.
    Plugin Contributor iSaumya

    (@isaumya)

    Hi @shoptak,
    If a page response already have custom cookies in it CF won’t cache that page as explained before:

    Cloudflare won’t cache a page which has custom cookies in response header as CF thinks the data of those cookies can be used to dynamically change the content.

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

The topic ‘Strip response cookies’ is closed to new replies.