• Resolved laurlau

    (@laurpm)


    Hello,
    I want to know how can I exclude some cookies from being cached? Because I have a part of my page displaying “latest viewed products” If I cache/preload the website, that part won’t function properly.
    I have cookies for GDPR and recently viewed products.
    It is a premium feature of the plugin to exclude cookies?
    Here is a photo with the cookies set

    View post on imgur.com


    Thank you all!

Viewing 8 replies - 1 through 8 (of 8 total)
  • @laurpm You can exclude it from WP-Optimize > Cache > Advanced Settings > Cookies which, if present, will prevent caching (one per line)

    Thread Starter laurlau

    (@laurpm)

    Yes. But that part with Recently Viewed Products is present on all my pages. So basically I will stop caching my website?

    @laurpm sorry didn’t understand your last reply, can you please explain in detail?

    Thread Starter laurlau

    (@laurpm)

    Well, maybe I’m not so technical so..
    That specific section containing Recently Viewed Products, is present on multiple pages. Home, Product Archive, Product. If I tell WP-Optimize to prevent caching if that particular cookie is detected, my website will not cache at all, correct?

    Thread Starter laurlau

    (@laurpm)

    I think I have found something more technical to see what I am talking about. here’s an example: https://docs.wp-rocket.me/article/852-making-wp-rocket-work-with-woocommerce-recently-viewed-products-widget

    @laurpm The page will be still cached on the first visit even if you have the widget added to every page.

    Thread Starter laurlau

    (@laurpm)

    hello,
    their tool for their plugin works.
    for my side, using wp-optimize, I enabled lazy load for Recently Viewed Products and it works. that part will not load from cache.
    I was wondering if you can do something similar with wp-optimize – just to be honest, I get GREAT results on speed/caching/minify/etc. and I don’t want to switch to something else 🙂

    @laurpm Okay I’ll share this with our development team and check if this can be fixed in upcoming version.

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

The topic ‘Exclude Cookies from Cache’ is closed to new replies.