Thread Starter
Selah
(@tubescreamer)
I’ve started a thread on the SiteGround Speed Optimizer WP Plugin here: https://ww.wp.xz.cn/support/topic/conflict-with-wcboost-wishlist-plugin/#post-18255227
They’ve indicated that the plugin adds a set-cookie header, such as the one below:
set-cookie: wcboost_wishlist_hash=2f839425b24480457461faeb8cd76b58%3A%3Aee11c9c47e9fa343f13bede21b6e7553; path=/
The set-cookie header indicates that the server is attempting to add a cookie to the user’s browser, which suggests that the content might be personalized or session-specific. Caching such responses could lead to serving personalized content to the wrong users, compromising functionality and security. Therefore, to ensure accurate and secure delivery of content, their caching systems bypass caching pages with “Set-Cookie” headers.
You say that the plugin works with caching plugins but there seems to be an issue here.. Can someone please help look into this?
I am having the same issue
Hello,
Thank you for reaching out and reporting the issue with WCBoost Wishlist and SG Optimizer.
The core issue stems from how SG Optimizer handles cookies differently from most other caching plugins. When SG Optimizer detects any cookies on a page, it chooses not to cache that page at all. This is an unusually strict approach, since cookies are actually a fundamental part of how modern websites work – they power many things from login sessions to shopping carts.
Most caching plugins offer more control over cookie handling. You can specify which cookies should prevent caching and which shouldn’t.
The reason WCBoost Wishlist uses a cookie is for performance optimization. Storing the wishlist data in a cookie allows us to avoid loading the wishlist contents on every single page load. This is actually the same approach that WooCommerce uses for shopping carts.
We are actively investigating ways to make our plugin work better with SG Optimizer. However, in the meantime, I would strongly recommend switching to a caching plugin that offers more flexible cookie handling. WP Rocket, W3 Total Cache, or LiteSpeed Cache would all be excellent alternatives. These plugins generally provide options to exclude specific cookies from the caching process, allowing your wishlist to function correctly while still enabling page caching.
If your caching plugin has a cookie exclusion setting, please add wcboost_wishlist_hash to the excluded cookies list – this will ensure your wishlist works properly while still allowing page caching for better performance.
-
This reply was modified 1 year, 3 months ago by
WCBoost.
Thread Starter
Selah
(@tubescreamer)
Thank you for the in-depth response.